2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00
discourse/lib/age_words.rb

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