Module: SerializableRails::Serializable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/serializable_rails/serializable.rb
Instance Method Summary collapse
Instance Method Details
#as_json(*args) ⇒ Object
23 24 25 26 27 |
# File 'lib/serializable_rails/serializable.rb', line 23 def as_json(*args) return super unless self.class.serializer self.class.serializer.new(self).as_json(*args) end |