method
attributes_hash
v3.0.9 -
Show latest stable
-
0 notes -
Class: ActiveModel::Serializers::Xml::Serializer
- 1.0.0
- 1.1.0
- 1.1.1
- 1.1.6
- 1.2.0
- 1.2.6
- 2.0.0
- 2.0.1
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.2
- 2.3.8
- 3.0.0 (0)
- 3.0.5 (0)
- 3.0.7 (0)
- 3.0.9 (-1)
- 3.1.0 (0)
- 3.2.1
- 3.2.3
- 3.2.8
- 3.2.13
- What's this?
attributes_hash()
public
To replicate the behavior in ActiveRecord#attributes, :except takes precedence over :only. If :only is not set for a N level model but is set for the N+1 level models, then because :except is set to a default value, the second level model can have both :except and :only set. So if :only is set, always delete :except.


