Class: ActiveModel::Serializers::Xml::Serializer

Inherits:
Object
  • Object
show all
Defined in:
lib/vworkapp_ruby/base/base.rb

Instance Method Summary collapse

Instance Method Details

#attributes_hashObject



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 options[:only].any?
    attributes.slice(*options[:only])
  elsif options[:except].any?
    attributes.except(*options[:except])
  else
    attributes
  end
end