Module: ActiveJob::QueueName
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | activejob/lib/active_job/queue_name.rb |
Class Method Summary
::ActiveSupport::Concern
- Extended
Instance Method Summary
-
#queue_name
Returns the name of the queue the job will be run on.
DSL Calls
included
[ GitHub ]36 37 38 39
# File 'activejob/lib/active_job/queue_name.rb', line 36
included do class_attribute :queue_name, instance_accessor: false, default: default_queue_name class_attribute :queue_name_delimiter, instance_accessor: false, default: "_" end
Instance Method Details
#queue_name
Returns the name of the queue the job will be run on.
# File 'activejob/lib/active_job/queue_name.rb', line 42
def queue_name if @queue_name.is_a?(Proc) @queue_name = self.class.queue_name_from_part(instance_exec(&@queue_name)) end @queue_name end