0.0
No commit activity in last 3 years
No release in over 3 years
MongoMapper plugin that removes ID field from EmbeddedDocuments
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.5.0
>= 2.7

Runtime

>= 0.10.1
 Project Readme

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