Class: Resque::Worker
- Inherits:
-
Object
- Object
- Resque::Worker
- Defined in:
- lib/resque/hooks/before_unregister_worker.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#unregister_worker ⇒ Object
Wrapper for original unregister_worker method which adds a before hook
before_unregister_worker
to be executed if present. - #unregister_worker_without_before_hook ⇒ Object
Instance Method Details
#unregister_worker ⇒ Object
Wrapper for original unregister_worker method which adds a before hook before_unregister_worker
to be executed if present.
10 11 12 13 |
# File 'lib/resque/hooks/before_unregister_worker.rb', line 10 def unregister_worker run_hook(:before_unregister_worker, self) unregister_worker_without_before_hook end |
#unregister_worker_without_before_hook ⇒ Object
6 |
# File 'lib/resque/hooks/before_unregister_worker.rb', line 6 alias_method :unregister_worker_without_before_hook, :unregister_worker |