rename time helper to ago

This commit is contained in:
jomo
2014-11-15 21:02:30 +01:00
parent 110bc2a248
commit d2efe44de5
10 changed files with 14 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ module ApplicationHelper
site_headers
end
def time(tm)
def ago(tm)
if tm
content_tag :time, title: tm.strftime("%e %b %Y, %H:%M %Z"), datetime: tm.to_datetime.rfc3339 do
tm.strftime("%e %b %Y, %H:%M")