Method: ActiveSupport::Duration.years

Defined in:
activesupport/lib/active_support/duration.rb

.years(value) ⇒ Object

:nodoc:



179
180
181
# File 'activesupport/lib/active_support/duration.rb', line 179

def years(value) # :nodoc:
  new(value * SECONDS_PER_YEAR, { years: value }, true)
end