discourse/lib/age_words.rb

9 lines
178 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
module AgeWords
def self.age_words(secs)
return "—" if secs.blank?
return FreedomPatches::Rails4.distance_of_time_in_words(Time.now, Time.now + secs)
2013-02-05 14:16:51 -05:00
end
end