diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/calculations.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index f238ca168a..1c9a3523a9 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -64,12 +64,12 @@ module ActiveSupport #:nodoc: change(:year => self.year + years) end - # Short-hand for months_ago(1) + # Short-hand for years_ago(1) def last_year - years_since(1) + years_ago(1) end - # Short-hand for months_since(1) + # Short-hand for years_since(1) def next_year years_since(1) end |