lib/resque/plugin.rb in resque-1.9.10 vs lib/resque/plugin.rb in resque-1.10.0

- old
+ new

@@ -40,7 +40,12 @@ # Given an object, returns a list `on_failure` hook names. def failure_hooks(job) job.methods.grep(/^on_failure/).sort end + + # Given an object, returns a list `after_enqueue` hook names. + def after_enqueue_hooks(job) + job.methods.grep(/^after_enqueue/).sort + end end end