Module: TimeagoFilter
- Defined in:
- lib/comatose/filters/timeago_filter.rb
Defined Under Namespace
Classes: Helpers
Instance Method Summary collapse
Instance Method Details
#time_ago(input) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/comatose/filters/timeago_filter.rb', line 6 def time_ago(input) TimeagoFilter::Helpers.distance_of_time_in_words_to_now(input, true) rescue #puts "Oops! -- #{$!}" input end |