class Message < ActiveRecord::Base
  belongs_to  :user
  belongs_to  :oauth_application

  serialize   :to, Array

  after_create :pass_through_original_email

private

  def pass_through_original_email
    UserMailer.delay.message_received(self.id)
  end

end

class Message < ActiveRecord::Base
  belongs_to  :user
  belongs_to  :oauth_application

  serialize   :to, Array

  after_create :pass_through_original_email

private

  def pass_through_original_email
    UserMailer.delay(priority: 100).message_received(self.id)
  end

end

Add priority to pass-through job
Add priority to pass-through job
