Class: Delayed::Web::Job
- Inherits:
-
Object
- Object
- Delayed::Web::Job
- Extended by:
- SingleForwardable
- Defined in:
- app/models/delayed/web/job.rb
Defined Under Namespace
Classes: ActiveRecord, Double, Mongoid
Class Method Summary collapse
- .backend ⇒ Object
-
.backend=(new_backend) ⇒ void
Set the backend you’re using for Delayed::Job.
Class Method Details
.backend ⇒ Object
23 24 25 |
# File 'app/models/delayed/web/job.rb', line 23 def self.backend @backend end |
.backend=(new_backend) ⇒ void
19 20 21 |
# File 'app/models/delayed/web/job.rb', line 19 def self.backend= new_backend @backend = "Delayed::Web::Job::#{new_backend.classify}".constantize end |