Module: ActiveJob::QueueName

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
activejob/lib/active_job/queue_name.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included, prepend_features, prepended

Instance Method Details

#queue_nameObject

Returns the name of the queue the job will be run on.



61
62
63
64
65
66
# File 'activejob/lib/active_job/queue_name.rb', line 61

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