aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-05-19 00:20:10 +0200
committerXavier Noria <fxn@hashref.com>2010-05-19 00:20:10 +0200
commitb753b4a076d7067efccbd1ad384829f77e62a064 (patch)
tree06a018d91b782a627a0ae9aa422326418e1ca771 /activesupport/lib/active_support/core_ext/time
parent223d6415d045e670610603665c21e93b06a01db7 (diff)
downloadrails-b753b4a076d7067efccbd1ad384829f77e62a064.tar.gz
rails-b753b4a076d7067efccbd1ad384829f77e62a064.tar.bz2
rails-b753b4a076d7067efccbd1ad384829f77e62a064.zip
removes deprecations of last_(month|year) from master, they will be deprecated in 2.3 instead
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time')
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb
index e27b08ec2e..3c218d88e5 100644
--- a/activesupport/lib/active_support/core_ext/time/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -2,7 +2,6 @@ require 'active_support/duration'
require 'active_support/core_ext/date/acts_like'
require 'active_support/core_ext/date/calculations'
require 'active_support/core_ext/date_time/conversions'
-require 'active_support/deprecation'
class Time
COMMON_YEAR_DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
@@ -133,11 +132,6 @@ class Time
advance(:years => years)
end
- def last_year # :nodoc:
- ActiveSupport::Deprecation.warn("Time#last_year has been deprecated, please use Time#prev_year instead", caller)
- prev_year
- end
-
# Short-hand for years_ago(1)
def prev_year
years_ago(1)
@@ -148,11 +142,6 @@ class Time
years_since(1)
end
- def last_month # :nodoc:
- ActiveSupport::Deprecation.warn("Time#last_month has been deprecated, please use Time#prev_month instead", caller)
- prev_month
- end
-
# Short-hand for months_ago(1)
def prev_month
months_ago(1)