Module: MongoMapper::Plugins::Serialization

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

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: XmlSerializer

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