Class: ActiveRecord::Serialization::JsonSerializer

Inherits:
Serializer
  • Object
show all
Defined in:
lib/gems/activerecord-2.2.2/lib/active_record/serializers/json_serializer.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Serializer

#options

Instance Method Summary collapse

Methods inherited from Serializer

#add_includes, #initialize, #serializable_attribute_names, #serializable_method_names, #serializable_names, #serializable_record, #to_s

Constructor Details

This class inherits a constructor from ActiveRecord::Serialization::Serializer

Instance Method Details

#serializeObject



69
70
71
# File 'lib/gems/activerecord-2.2.2/lib/active_record/serializers/json_serializer.rb', line 69

def serialize
  serializable_record.to_json
end