lib/resque/plugin.rb in nfo-resque-mongo-1.15.1 vs lib/resque/plugin.rb in nfo-resque-mongo-1.17.1
- old
+ new
@@ -45,7 +45,12 @@
# Given an object, returns a list `after_enqueue` hook names.
def after_enqueue_hooks(job)
job.methods.grep(/^after_enqueue/).sort
end
+
+ # Given an object, returns a list `before_enqueue` hook names.
+ def before_enqueue_hooks(job)
+ job.methods.grep(/^before_enqueue/).sort
+ end
end
end