Module: ActiveJob::QueueName
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#queue_name ⇒ Object
Returns the name of the queue the job will be run on.
Instance Method Details
#queue_name ⇒ Object
Returns the name of the queue the job will be run on.
42 43 44 45 46 47 |
# File '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 |