Class: ActiveModel::Serializers::Xml::Serializer
- Inherits:
-
Object
- Object
- ActiveModel::Serializers::Xml::Serializer
- Defined in:
- lib/vworkapp_ruby/base/base.rb
Instance Method Summary collapse
Instance Method Details
#attributes_hash ⇒ Object
161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/vworkapp_ruby/base/base.rb', line 161 def attributes_hash # AF: Changed to write_attributes attributes = @serializable.write_attributes if [:only].any? attributes.slice(*[:only]) elsif [:except].any? attributes.except(*[:except]) else attributes end end |