Module: MongoMapper::Plugins::Serialization

Defined in:
lib/mongo_mapper/plugins/serialization.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(model) ⇒ Object



6
7
8
# File 'lib/mongo_mapper/plugins/serialization.rb', line 6

def self.configure(model)
  model.class_eval { cattr_accessor :include_root_in_json, :instance_writer => true }
end