mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-24 06:22:31 -05:00
8 lines
178 B
Ruby
8 lines
178 B
Ruby
module AgeWords
|
|
|
|
def self.age_words(secs)
|
|
return "—" if secs.blank?
|
|
return FreedomPatches::Rails4.distance_of_time_in_words(Time.now, Time.now + secs)
|
|
end
|
|
|
|
end
|