Method: Time#ago

Defined in:
activesupport/lib/active_support/core_ext/time/calculations.rb

#ago(seconds) ⇒ Object

Returns a new Time representing the time a number of seconds ago, this is basically a wrapper around the Numeric extension



220
221
222
# File 'activesupport/lib/active_support/core_ext/time/calculations.rb', line 220

def ago(seconds)
  since(-seconds)
end