Skip to content

Commit

Permalink
remove_possible_method -> remove_method
Browse files Browse the repository at this point in the history
  Date#to_time and Date#xmlschema methods defined in Ruby 1.9.3
  • Loading branch information
NARKOZ committed Jan 11, 2013
1 parent 39a88f6 commit c6897b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/core_ext/date/conversions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit c6897b7

Please sign in to comment.