Skip to content

Instantly share code, notes, and snippets.

@terry6394
terry6394 / mongo.rb
Created May 16, 2011 04:07 — forked from oma/mongo.rb
oma mongomapper setup
# config/initializers/mongo.rb
#
# MonkeyPatch to fix the error going on in mongomapper + rails3 + ruby 1.9.2
#
MongoMapper::Plugins.class_eval do
def plugins
@plugins ||= []
end