aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-18 21:37:10 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-18 21:37:10 +0000
commit2de765e850eaa3f0f43a2c39cc64a4c180c55cfa (patch)
treefe88b02b6751ca571799d3192169c6d5087efc61 /activesupport
parent9db8f3e57a0b18340b151033c53caaa4c679a801 (diff)
downloadrails-2de765e850eaa3f0f43a2c39cc64a4c180c55cfa.tar.gz
rails-2de765e850eaa3f0f43a2c39cc64a4c180c55cfa.tar.bz2
rails-2de765e850eaa3f0f43a2c39cc64a4c180c55cfa.zip
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
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/date/conversions.rb4
1 files changed, 4 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 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