Method: Resque::Failure.backend=
- Defined in:
- lib/resque/failure.rb
.backend=(backend) ⇒ Object
Sets the current backend. Expects a class descendent of ‘Resque::Failure::Base`.
Example use:
require 'resque/failure/airbrake'
Resque::Failure.backend = Resque::Failure::Airbrake
27 28 29 |
# File 'lib/resque/failure.rb', line 27 def self.backend=(backend) @backend = backend end |