Sha256: edb83b5db1fdf8dc059036c673237d0fd174780340fa622154ccc87e553fede9
Contents?: true
Size: 654 Bytes
Versions: 5
Compression:
Stored size: 654 Bytes
Contents
mm_uses_no_id plugin ============ Embedded models that use this plugin don't have an id field by default. This can save on storage space if the id isn't needed. Requirements ============ - MongoMapper 0.10.1 or greater Installation ======= Add this to your Gemfile if using Bundler: `gem 'mm_uses_no_id'` Or install the gem from the command line: `gem install mm_uses_no_id` Usage ======= Use the MongoMapper `plugin` method to add MmUsesNoId to your model, for example: ``` class Person include MongoMapper::EmbeddedDocument plugin MmUsesNoId key :name, String end ``` Copyright (c) 2011 PeepAll Ltd, released under the MIT license
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mm_uses_no_id-0.0.5 | README.md |
mm_uses_no_id-0.0.4 | README.md |
mm_uses_no_id-0.0.3 | README.md |
mm_uses_no_id-0.0.2 | README.md |
mm_uses_no_id-0.0.1 | README.md |