Skip to content

Commit

Permalink
Add note about MongoMapper.setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Nov 13, 2010
1 parent b6b502a commit 4a0ddc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.textile
Expand Up @@ -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>

Expand Down

0 comments on commit 4a0ddc6

Please sign in to comment.