Skip to content

Commit

Permalink
Add docs to Resque.enque regarding return value
Browse files Browse the repository at this point in the history
  • Loading branch information
raykrueger committed Sep 22, 2011
1 parent 5fee4cd commit ca2e8ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/resque.rb
Expand Up @@ -222,6 +222,9 @@ def watch_queue(queue)
#
# If no queue can be inferred this method will raise a `Resque::NoQueueError`
#
# Returns true if the job was queued, nil if the job was rejected by a
# before_enqueue hook.
#
# This method is considered part of the `stable` API.
def enqueue(klass, *args)
# Perform before_enqueue hooks. Don't perform enqueue if any hook returns false
Expand Down

0 comments on commit ca2e8ac

Please sign in to comment.