From 2de765e850eaa3f0f43a2c39cc64a4c180c55cfa Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 18 Mar 2006 21:37:10 +0000 Subject: Dates should be able to go xmlschema too [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/date/conversions.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index a9d7eb0976..2a14a46480 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -25,6 +25,10 @@ module ActiveSupport #:nodoc: def to_time(form = :local) ::Time.send(form, year, month, day) end + + def xmlschema + to_time.xmlschema + end end end end -- cgit v1.2.3