Class: MongoMapper::Serialization::JsonSerializer

Inherits:
Serializer show all
Defined in:
lib/mongo_mapper/serializers/json_serializer.rb

Instance Attribute Summary

Attributes inherited from Serializer

#options

Instance Method Summary collapse

Methods inherited from Serializer

#initialize, #serializable_key_names, #serializable_method_names, #serializable_names, #serializable_record, #to_s

Constructor Details

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

Instance Method Details

#serializeObject



24
25
26
# File 'lib/mongo_mapper/serializers/json_serializer.rb', line 24

def serialize
  serializable_record.to_json
end