aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-25 08:06:42 -0800
committerJosé Valim <jose.valim@gmail.com>2011-12-25 08:06:42 -0800
commite3b59c715caaca4c7a9ad4f4fbf80112add4b393 (patch)
tree47a40bda63be8d48638a92a649e88c83cf9cee9b /activesupport
parentb0a4487b0ecc86ebc2abc0432ab301aaac6e065a (diff)
parent8f0d7c897319f4faaffba7ffb22d4581d45811a3 (diff)
downloadrails-e3b59c715caaca4c7a9ad4f4fbf80112add4b393.tar.gz
rails-e3b59c715caaca4c7a9ad4f4fbf80112add4b393.tar.bz2
rails-e3b59c715caaca4c7a9ad4f4fbf80112add4b393.zip
Merge pull request #4184 from lest/remove-1-8-code
remove date methods that are present in 1.9 ruby
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/date/calculations.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/calculations.rb b/activesupport/lib/active_support/core_ext/date/calculations.rb
index 2212e0b3ca..af78226c21 100644
--- a/activesupport/lib/active_support/core_ext/date/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/date/calculations.rb
@@ -136,26 +136,6 @@ class Date
advance(:years => years)
end
- # Shorthand for years_ago(1)
- def prev_year
- years_ago(1)
- end unless method_defined?(:prev_year)
-
- # Shorthand for years_since(1)
- def next_year
- years_since(1)
- end unless method_defined?(:next_year)
-
- # Shorthand for months_ago(1)
- def prev_month
- months_ago(1)
- end unless method_defined?(:prev_month)
-
- # Shorthand for months_since(1)
- def next_month
- months_since(1)
- end unless method_defined?(:next_month)
-
# Returns number of days to start of this week. Week is assumed to start on
# +start_day+, default is +:monday+.
def days_to_week_start(start_day = :monday)