Module: MongoMapper::Plugins::AutoIncrementId::ClassMethods
- Defined in:
- lib/mongo_mapper/plugins/auto_increment_id.rb
Instance Method Summary collapse
Instance Method Details
#auto_increment_id ⇒ Object
7 8 9 10 11 |
# File 'lib/mongo_mapper/plugins/auto_increment_id.rb', line 7 def auto_increment_id key :_id, Integer before_create :generate_document_id end |