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 options={}
  active_model_serializer.new(self).as_json options
end

#to_json(options = {}) ⇒ Object



6
7
8
# File 'lib/active_record/serializer_override.rb', line 6

def to_json options = {}
  active_model_serializer.new(self).to_json options
end