Skip to content

Commit ca2e8ac

Browse files
committed
Add docs to Resque.enque regarding return value
1 parent 5fee4cd commit ca2e8ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/resque.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ def watch_queue(queue)
222222
#
223223
# If no queue can be inferred this method will raise a `Resque::NoQueueError`
224224
#
225+
# Returns true if the job was queued, nil if the job was rejected by a
226+
# before_enqueue hook.
227+
#
225228
# This method is considered part of the `stable` API.
226229
def enqueue(klass, *args)
227230
# Perform before_enqueue hooks. Don't perform enqueue if any hook returns false

0 commit comments

Comments
 (0)