mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user