Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/sekrett/delayed_job
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/sekrett/delayed_job:
  Documentation patch for actionmailer example
  • Loading branch information
bkeepers committed Dec 1, 2010
2 parents b3d8834 + c642f28 commit c464744
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.textile
Expand Up @@ -41,11 +41,12 @@ Call @.delay.method(params)@ on any object and it will be processed in the backg

<pre>
# without delayed_job
Notifier.deliver_signup(@user)
Notifier.signup(@user).deliver

# with delayed_job
Notifier.delay.signup(@user)
</pre>
Yes, you should remove .deliver method to make it work.

If a method should always be run in the background, you can call @#handle_asynchronously@ after the method declaration:

Expand Down

0 comments on commit c464744

Please sign in to comment.