diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-17 20:14:14 +1100 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-01-17 20:14:14 +1100 |
commit | 19814df40d171b2ed83875a36d7361881ccf2e70 (patch) | |
tree | 08d0d241a0e7aafd1c3fd77db9c5802f22cd4f33 /activemodel/lib/active_model/serializers | |
parent | e6063282f98b9d40da00897727e5ae01ca61b9fc (diff) | |
download | rails-19814df40d171b2ed83875a36d7361881ccf2e70.tar.gz rails-19814df40d171b2ed83875a36d7361881ccf2e70.tar.bz2 rails-19814df40d171b2ed83875a36d7361881ccf2e70.zip |
Adding documentation for ActiveModel::Serialization
Diffstat (limited to 'activemodel/lib/active_model/serializers')
-rw-r--r-- | activemodel/lib/active_model/serializers/xml.rb | 4 |
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 |