aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-11 07:23:28 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-11 07:23:28 -0800
commit7738222173e547ed92c6f85a64ececb766825cf3 (patch)
tree4df4d2d479e5cd4ce6555a2bdb3dc28f9d348b68
parent39a88f6f0eb1900d991ccde6fe59f56bfa4857ba (diff)
parentc6897b7d7b18b5c89aca46d4595b47c2590ce335 (diff)
downloadrails-7738222173e547ed92c6f85a64ececb766825cf3.tar.gz
rails-7738222173e547ed92c6f85a64ececb766825cf3.tar.bz2
rails-7738222173e547ed92c6f85a64ececb766825cf3.zip
Merge pull request #8896 from NARKOZ/patch-5
remove_possible_method -> remove_method
-rw-r--r--activesupport/lib/active_support/core_ext/date/conversions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb
index fe08ade7e0..cdf606f28c 100644
--- a/activesupport/lib/active_support/core_ext/date/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/date/conversions.rb
@@ -17,10 +17,10 @@ class Date
}
# Ruby 1.9 has Date#to_time which converts to localtime only.
- remove_possible_method :to_time
+ remove_method :to_time
# Ruby 1.9 has Date#xmlschema which converts to a string without the time component.
- remove_possible_method :xmlschema
+ remove_method :xmlschema
# Convert to a formatted string. See DATE_FORMATS for predefined formats.
#