Module: MongoMapper::Plugins::Keys

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

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Key

Class Method Summary collapse

Class Method Details

.configure(model) ⇒ Object



4
5
6
# File 'lib/mongo_mapper/plugins/keys.rb', line 4

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