diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-23 05:52:44 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-23 05:52:44 -0700 |
commit | a6d0e3795790c85dded4f2c396277214508dbc89 (patch) | |
tree | b194448e6e31310c68acf5a360280a215fc8cacd /activemodel | |
parent | 90d8c8a2be54d944af80342d36879e9e43e4a53d (diff) | |
parent | 5646d65d01845adf669b9e6c4899b6ac15849bb9 (diff) | |
download | rails-a6d0e3795790c85dded4f2c396277214508dbc89.tar.gz rails-a6d0e3795790c85dded4f2c396277214508dbc89.tar.bz2 rails-a6d0e3795790c85dded4f2c396277214508dbc89.zip |
Merge pull request #6446 from acapilleri/mini_xml_4
Change xml type datetime to dateTime
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/serializers/xml.rb | 2 | ||||
-rw-r--r-- | activemodel/test/cases/serializers/xml_serialization_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/serializers/xml.rb b/activemodel/lib/active_model/serializers/xml.rb index b78f1ff3f3..2b3e9ce134 100644 --- a/activemodel/lib/active_model/serializers/xml.rb +++ b/activemodel/lib/active_model/serializers/xml.rb @@ -172,7 +172,7 @@ module ActiveModel # <id type="integer">1</id> # <name>David</name> # <age type="integer">16</age> - # <created-at type="datetime">2011-01-30T22:29:23Z</created-at> + # <created-at type="dateTime">2011-01-30T22:29:23Z</created-at> # </user> # # The <tt>:only</tt> and <tt>:except</tt> options can be used to limit the attributes diff --git a/activemodel/test/cases/serializers/xml_serialization_test.rb b/activemodel/test/cases/serializers/xml_serialization_test.rb index 5fa227e0e0..7eb48abc3c 100644 --- a/activemodel/test/cases/serializers/xml_serialization_test.rb +++ b/activemodel/test/cases/serializers/xml_serialization_test.rb @@ -140,7 +140,7 @@ class XmlSerializationTest < ActiveModel::TestCase end test "should serialize datetime" do - assert_match %r{<created-at type=\"datetime\">2006-08-01T00:00:00Z</created-at>}, @contact.to_xml + assert_match %r{<created-at type=\"dateTime\">2006-08-01T00:00:00Z</created-at>}, @contact.to_xml end test "should serialize boolean" do |