Skip to content

Commit

Permalink
Merge pull request rails#8896 from NARKOZ/patch-5
Browse files Browse the repository at this point in the history
remove_possible_method -> remove_method
  • Loading branch information
rafaelfranca committed Jan 11, 2013
2 parents 39a88f6 + c6897b7 commit 7738222
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 7738222

Please sign in to comment.