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 Jun 3, 2010
1 parent f64b922 commit eecb1a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.textile
Original file line number Diff line number Diff line change
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 eecb1a8

Please sign in to comment.