Module: Kix::Serializable

Extended by:
ActiveSupport::Concern
Defined in:
lib/kix/serializable.rb

Instance Method Summary collapse

Instance Method Details

#as_json(*args) ⇒ Object



33
34
35
36
37
# File 'lib/kix/serializable.rb', line 33

def as_json(*args)
  return super unless self.class.serializer

  self.class.serializer.new(self).as_json(*args)
end