aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/serializers/xml.rb
diff options
context:
space:
mode:
authorMikel Lindsaar <raasdnil@gmail.com>2010-01-17 20:14:14 +1100
committerMikel Lindsaar <raasdnil@gmail.com>2010-01-17 20:14:14 +1100
commit19814df40d171b2ed83875a36d7361881ccf2e70 (patch)
tree08d0d241a0e7aafd1c3fd77db9c5802f22cd4f33 /activemodel/lib/active_model/serializers/xml.rb
parente6063282f98b9d40da00897727e5ae01ca61b9fc (diff)
downloadrails-19814df40d171b2ed83875a36d7361881ccf2e70.tar.gz
rails-19814df40d171b2ed83875a36d7361881ccf2e70.tar.bz2
rails-19814df40d171b2ed83875a36d7361881ccf2e70.zip
Adding documentation for ActiveModel::Serialization
Diffstat (limited to 'activemodel/lib/active_model/serializers/xml.rb')
-rw-r--r--activemodel/lib/active_model/serializers/xml.rb4
1 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 86149f1e5f..a185204680 100644
--- a/activemodel/lib/active_model/serializers/xml.rb
+++ b/activemodel/lib/active_model/serializers/xml.rb
@@ -85,8 +85,8 @@ module ActiveModel
@options[:except] = Array.wrap(@options[:except]).map { |n| n.to_s }
end
- # To replicate the behavior in ActiveRecord#attributes,
- # <tt>:except</tt> takes precedence over <tt>:only</tt>. If <tt>:only</tt> is not set
+ # To replicate the behavior in ActiveRecord#attributes, <tt>:except</tt>
+ # takes precedence over <tt>:only</tt>. If <tt>:only</tt> is not set
# for a N level model but is set for the N+1 level models,
# then because <tt>:except</tt> is set to a default value, the second
# level model can have both <tt>:except</tt> and <tt>:only</tt> set. So if