instance method
prev_year
Ruby on Rails 3.2.22.5
Since v3.0.20Signature
prev_year()
Short-hand for years_ago(1)
Source
# File activesupport/lib/active_support/core_ext/time/calculations.rb, line 163
def prev_year
years_ago(1)
end
Defined in activesupport/lib/active_support/core_ext/time/calculations.rb line 163
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Time