Skip to content
Browse files

remove_possible_method -> remove_method

  Date#to_time and Date#xmlschema methods defined in Ruby 1.9.3
  • Loading branch information...
1 parent 39a88f6 commit c6897b7d7b18b5c89aca46d4595b47c2590ce335 @NARKOZ NARKOZ committed Jan 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/date/conversions.rb
View
4 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.
#

0 comments on commit c6897b7

Please sign in to comment.
Something went wrong with that request. Please try again.