Fetching contributors…
Cannot retrieve contributors at this time
58 lines (37 sloc) 1.37 KB

This fork

This fork replaces BSON::ObjectId to auto incremented id in MongoMapper documents

This fork is based on

It was submitted as pull request


# app/models/movie.rb
class Movie
  include MongoMapper::Document

  key :title, String
  # Here is the fork

movie = Movie.create(:title => 'The Simpsons Movie') # 1

movie2 = Movie.create(:title => 'Pirates of Silicon Valley') # 2


A Ruby Object Mapper for Mongo.


$ gem install mongo_mapper

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.


$ gem install bundler (if you don't have it)
$ bundle install
$ bundle exec rake

Problems or Questions?

Hit up the google group:

Hop on IRC: irc://


See LICENSE for details.