Module: ActiveJob::QueuePriority
| Relationships & Source Files | |
| Namespace Children | |
| Modules: | |
| Extension / Inclusion / Inheritance Descendants | |
| Included In: 
        ActionMailer::DeliveryJob,
          ActionMailer::MailDeliveryJob,
          ActionMailer::Parameterized::DeliveryJob,
           Base,::ActiveRecord::DestroyAssociationAsyncJob | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           ::ActiveSupport::Concern | |
| Defined in: | activejob/lib/active_job/queue_priority.rb | 
Class Method Summary
::ActiveSupport::Concern - Extended
| class_methods | Define class methods from given block. | 
| included | Evaluate given block in context of base class, so that you can write class macros here. | 
| prepended | Evaluate given block in context of base class, so that you can write class macros here. | 
Instance Method Summary
- 
    
      #priority  
    
    Returns the priority that the job will be created with. 
DSL Calls
included
[ GitHub ]31 32 33
# File 'activejob/lib/active_job/queue_priority.rb', line 31
included do class_attribute :priority, instance_accessor: false, default: default_priority end
Instance Method Details
#priority
Returns the priority that the job will be created with
# File 'activejob/lib/active_job/queue_priority.rb', line 36
def priority if @priority.is_a?(Proc) @priority = instance_exec(&@priority) end @priority end