Merge modified #350.

This commit is contained in:
bootstraponline
2012-05-22 22:46:15 -06:00
parent 8b5dfff2a1
commit ac41ed629e
2 changed files with 23 additions and 2 deletions
+2 -2
View File
@@ -15,12 +15,12 @@ module Precious
def author
return DEFAULT_AUTHOR unless @page.version
@page.version.author.name
@page.versions.first.author.name
end
def date
return Time.now.strftime(DATE_FORMAT) unless @page.version
@page.version.authored_date.strftime(DATE_FORMAT)
@page.versions.first.authored_date.strftime(DATE_FORMAT)
end
def editable