diff options
author | Xavier Noria <fxn@hashref.com> | 2011-02-21 11:00:03 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-02-21 11:00:03 +0100 |
commit | 843a5b9a3aa3e20f3a3b50fea16351dcddcfde75 (patch) | |
tree | 78b50e51a86ec5b4ef1b892e9531534d7a22c42f /activemodel | |
parent | 34316d8b7e6b830e97ebbe124ac6d9a19ce77d2d (diff) | |
download | rails-843a5b9a3aa3e20f3a3b50fea16351dcddcfde75.tar.gz rails-843a5b9a3aa3e20f3a3b50fea16351dcddcfde75.tar.bz2 rails-843a5b9a3aa3e20f3a3b50fea16351dcddcfde75.zip |
copy-edits 34316d8
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/serializers/xml.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/activemodel/lib/active_model/serializers/xml.rb b/activemodel/lib/active_model/serializers/xml.rb index 0b0116d32c..d4295e6afe 100644 --- a/activemodel/lib/active_model/serializers/xml.rb +++ b/activemodel/lib/active_model/serializers/xml.rb @@ -146,19 +146,17 @@ 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 # included, and work similar to the +attributes+ method. - # - # To include the result of some method calls on the model use <tt>:methods</tt> # - # To include associations use <tt>:include</tt> + # To include the result of some method calls on the model use <tt>:methods</tt>. # - # For further documentation see activerecord/lib/active_record/serializers/xml_serializer.xml - - + # To include associations use <tt>:include</tt>. + # + # For further documentation see activerecord/lib/active_record/serializers/xml_serializer.xml. def to_xml(options = {}, &block) Serializer.new(self, options).serialize(&block) end |