Flowdock
method

attributes_hash

Importance_1
v3.0.5 - Show latest stable - 0 notes - Class: ActiveModel::Serializers::Xml::Serializer
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.

Show source
Register or log in to add new notes.