class ActiveJobChannel::NoIdentifierError

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 7
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 14
def generate_message
  'ActiveJobChannel has been configured to broadcast privately for ' \
    "#{job_class}, but an `ajc_identifier` has not been set. The " \
    'identifier should be made available in your job via a method or an ' \
    'instance variable, either named `ajc_identifier`. For details about ' \
    'setting up an identifier in your ActionCable Connection, visit ' \
    'http://guides.rubyonrails.org/' \
    "action_cable_overview.html#connection-setup\n\nTo broadcast " \
    'globally without an identifier, pass in ' \
    '`{ global_broadcast: true }` to `active_job_channel` as part of an ' \
    'options hash.'
end