module ActiveJob::QueuePriority::ClassMethods

def queue_with_priority(priority = nil, &block)

Specify either an argument or a block.

end
end
post.to_feed!
def perform(post)

queue_with_priority 50
class PublishToFeedJob < ActiveJob::Base

Specifies the priority of the queue to create the job with.
def queue_with_priority(priority = nil, &block)
  if block_given?
    self.priority = block
  else
    self.priority = priority
  end
end