From c6897b7d7b18b5c89aca46d4595b47c2590ce335 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Fri, 11 Jan 2013 18:51:35 +0400 Subject: [PATCH] remove_possible_method -> remove_method Date#to_time and Date#xmlschema methods defined in Ruby 1.9.3 --- activesupport/lib/active_support/core_ext/date/conversions.rb | 4 ++-- 1 file 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 fe08ade7e0273..cdf606f28c6a0 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. #