diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date/conversions.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date/conversions.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index 627c8dd485..bae20c66db 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -25,9 +25,11 @@ module ActiveSupport #:nodoc: def to_time(form = :local) ::Time.send(form, year, month, day) end - - alias :xmlschema :to_s + + def xmlschema + to_time.xmlschema + end end end end -end
\ No newline at end of file +end |