Module: MongoMapper::Plugins::Keys

Defined in:
lib/mongo_mapper/plugins/keys.rb,
lib/mongo_mapper/plugins/keys/key.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Key

Class Method Summary collapse

Class Method Details

.configure(model) ⇒ Object



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

def self.configure(model)
  model.key :_id, ObjectId
end