class ActiveJobChannel::UnnecessaryIdentifierError

Attributes

job_class[R]

Public Class Methods

new(job_class) click to toggle source
Calls superclass method
# File lib/active_job_channel/exceptions.rb, line 31
def initialize(job_class)
  @job_class = job_class
  super(generate_message)
end

Private Instance Methods

generate_message() click to toggle source
# File lib/active_job_channel/exceptions.rb, line 38
def generate_message
  'ActiveJobChannel has been configured to broadcast globally for ' \
    "#{job_class}, but an `ajc_identifier` has been set. If the job " \
    'information should be broadcast globally, remove the ' \
    '`ajc_identifier`. Otherwise, pass in `{ global_broadcast: true } ` ' \
    'to `active_job_channel` as part of an options hash'
end