Show human name as title.
This commit is contained in:
@@ -3,6 +3,10 @@ module Precious
|
||||
class Page < Layout
|
||||
attr_reader :content
|
||||
|
||||
def human_name
|
||||
@name.gsub(/-/, ' ')
|
||||
end
|
||||
|
||||
def title
|
||||
"A Page"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user