diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:27:29 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-15 02:27:29 +0000 |
commit | bb152cd8ca2502c4b426a46fa9d86d9cff68d0cb (patch) | |
tree | af192609bc045e0553c039d4b5e792d7529f210e /activesupport/lib/active_support/core_ext/date/conversions.rb | |
parent | 3d90733e937d11b6905ff11ce006a591ec11b4f4 (diff) | |
download | rails-bb152cd8ca2502c4b426a46fa9d86d9cff68d0cb.tar.gz rails-bb152cd8ca2502c4b426a46fa9d86d9cff68d0cb.tar.bz2 rails-bb152cd8ca2502c4b426a46fa9d86d9cff68d0cb.zip |
Ruby 1.9 compat: normalize date and time xmlschema to match Ruby's formatting [chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date/conversions.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date/conversions.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index 646dd50707..f34d860117 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -20,6 +20,9 @@ module ActiveSupport #:nodoc: # Ruby 1.9 has Date#to_time which converts to localtime only. remove_method :to_time if base.instance_methods.include?(:to_time) + + # Ruby 1.9 has Date#xmlschema which converts to a string without the time component. + remove_method :xmlschema if base.instance_methods.include?(:xmlschema) end end |