Permalink
Browse files

Add note about MongoMapper.setup

  • Loading branch information...
1 parent f64b922 commit eecb1a8302eca5cdbfcb398e87987773ee439c16 @bkeepers bkeepers committed Jun 3, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 README.textile
View
@@ -53,8 +53,12 @@ $ rake db:migrate
h3. MongoMapper
+You must use @MongoMapper.setup@ in the initializer:
+
<pre>
-# config/initializers/delayed_job.rb
+config = YAML::load(File.read(Rails.root.join('config/mongo.yml')))
+MongoMapper.setup(config, Rails.env)
+
Delayed::Worker.backend = :mongo_mapper
</pre>

0 comments on commit eecb1a8

Please sign in to comment.