Module: ActionView::Helpers::DateHelper
- Defined in:
- lib/app/helpers/form_elements/pdf_link.rb
Instance Method Summary collapse
Instance Method Details
#distance_of_time_in_words_to_now_with_future(from_time, include_seconds = false) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/app/helpers/form_elements/pdf_link.rb', line 22 def distance_of_time_in_words_to_now_with_future(from_time, include_seconds = false) if from_time > Time.now() 'in ' + distance_of_time_in_words_to_now_without_future(from_time, include_seconds) else distance_of_time_in_words_to_now_without_future(from_time, include_seconds) + ' ago' end end |