Module: ActiveJob::QueueName
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
ActionMailer::DeliveryJob,
Base
| |
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 ]34 35 36 37 38 39 40
# File 'activejob/lib/active_job/queue_name.rb', line 34
included do class_attribute :queue_name, instance_accessor: false class_attribute :queue_name_delimiter, instance_accessor: false self.queue_name = default_queue_name self.queue_name_delimiter = '_' # set default delimiter to '_' 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 43
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