Skip to content

Commit

Permalink
Re-added Delayed::Job.work_off and deprecated it
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 26, 2010
1 parent 42c07cc commit 36b558d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/delayed/backend/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ def before_fork
# Hook method that is called after a new worker is forked
def after_fork
end

def work_off(num = 100)
warn "[DEPRECATION] `Delayed::Job.work_off` is deprecated. Use `Delayed::Worker.new.work_off instead."
Delayed::Worker.new.work_off(num)
end
end

ParseObjectFromYaml = /\!ruby\/\w+\:([^\s]+)/
Expand Down

0 comments on commit 36b558d

Please sign in to comment.