NoamB/sorcery — pull request #91 by kbighorse (2011-10-14 02:13:59+00:00)
Title: Mongo mapper

Notes:
- MongoMapper doesn't support #save!(:validate => false), so there are some if statements for MM only to use #save instead. I suspect the other adapters would still work using #save, but only did it for MM.

- used simple if statements for initializing model methods after Mongoid checks. To avoid changing the Mongoid code, I left them as is. I'd recommend doing some if defined?(Mongoid) .. elsif defined?(MongoMapper) .. end logic now instead. Would probably behave strangely if Mongoid and MongoMapper were both defined, but there you go.