lib/resque/plugin.rb in resque-1.17.1 vs lib/resque/plugin.rb in resque-1.18.0

- 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