W3cubDocs

/Ruby on Rails 7.0

module ActiveJob::QueueName

Public Instance Methods

queue_name() Show source
# File activejob/lib/active_job/queue_name.rb, line 62
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

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

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.