Class: Preneeds::Base

Inherits:
Object
  • Object
show all
Includes:
Vets::Model
Defined in:
app/models/preneeds/base.rb

Instance Method Summary collapse

Methods included from Vets::Model

#attributes, #initialize, #nested_attributes

Methods included from Vets::Attributes

included

Instance Method Details

#as_json(options = {}) ⇒ Object

Override ‘as_json`

Parameters:

  • options (Hash) (defaults to: {})

See Also:

  • ActiveModel::Serializers::JSON


17
18
19
# File 'app/models/preneeds/base.rb', line 17

def as_json(options = {})
  super(options).deep_transform_keys { |key| key.camelize(:lower) }
end