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



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

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