Module: SimpleAPIFieldControl

Extended by:
ActiveSupport::Concern
Defined in:
lib/simple-api-field-control.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#serializable_hash(options = nil) ⇒ Object



11
12
13
14
# File 'lib/simple-api-field-control.rb', line 11

def serializable_hash(options = nil)
  options = { methods: self.class.api_include_fields, except: api_exclude_fields }.merge(options || {})
  super(options)
end