class MultiBackgroundJob::NotDefinedWorker
Public Class Methods
new(worker_class)
click to toggle source
# File lib/multi_background_job/errors.rb, line 11 def initialize(worker_class) @worker_class = worker_class end
Public Instance Methods
message()
click to toggle source
# File lib/multi_background_job/errors.rb, line 15 def message format( "The %<worker>p is not defined and the MultiBackgroundJob is configured to work on strict mode.\n" + "it's highly recommended to include this worker class to the list of known workers.\n" + "Example: `MultiBackgroundJob.configure { |config| config.workers = { %<worker>p => {} } }`\n" + 'Another option is to set config.strict = false', worker: @worker_class, ) end