From eba58b2c12586fc0558b805679b236a8379dd47a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 18 Mar 2006 21:46:49 +0000 Subject: Date in iso8601 should just be a to_s alias git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3952 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/date/conversions.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activesupport/lib/active_support/core_ext/date/conversions.rb') diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index 2a14a46480..627c8dd485 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -26,9 +26,7 @@ module ActiveSupport #:nodoc: ::Time.send(form, year, month, day) end - def xmlschema - to_time.xmlschema - end + alias :xmlschema :to_s end end end -- cgit v1.2.3