It aims to replace machinist_mongomapper to provide Machinist adapters not just for MongoMapper but for all the others MongoDB ORMs too. Right now it supports Mongoid and MongoMapper, but we aim to support all mongoDB ORMs, so If you’re using something other than MongoMapper or Mongoid, please be sure to write a adapter for it.
Using Machinist MongoMapper is simple. Put this in your
Or — if you’re using Rails 2.x — put this in
require 'machinist/mongo_mapper' # or mongoid require 'sham'
Don’t forget to require the new
blueprints.rb file in your
require File.expand_path(File.dirname(__FILE__) + "/blueprints")
And you’re all set. Be sure read Machinist’s README to find out how to create your objects and get this thing running.