2013-02-05 14:16:51 -05:00
|
|
|
module AgeWords
|
|
|
|
|
|
|
|
|
|
def self.age_words(secs)
|
2015-12-01 21:06:37 +00:00
|
|
|
if secs.blank?
|
|
|
|
|
"—"
|
|
|
|
|
else
|
|
|
|
|
now = Time.now
|
|
|
|
|
FreedomPatches::Rails4.distance_of_time_in_words(now, now + secs)
|
|
|
|
|
end
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
|
|
2013-03-13 00:05:21 -07:00
|
|
|
end
|