Module: ActiveJob::QueuePriority::ClassMethods
- Defined in:
 - lib/active_job/queue_priority.rb
 
Overview
Includes the ability to override the default queue priority.
Instance Method Summary collapse
- 
  
    
      #queue_with_priority(priority = nil, &block)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Specifies the priority of the queue to create the job with.
 
Instance Method Details
#queue_with_priority(priority = nil, &block) ⇒ Object
      22 23 24 25 26 27 28  | 
    
      # File 'lib/active_job/queue_priority.rb', line 22 def queue_with_priority(priority = nil, &block) if block_given? self.priority = block else self.priority = priority end end  |