Module: ActiveRecord::SerializerOverride
- Defined in:
- lib/active_record/serializer_override.rb
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
10 11 12 |
# File 'lib/active_record/serializer_override.rb', line 10 def as_json ={} active_model_serializer.new(self).as_json end |
#to_json(options = {}) ⇒ Object
6 7 8 |
# File 'lib/active_record/serializer_override.rb', line 6 def to_json = {} active_model_serializer.new(self).to_json end |