Class: Rimless::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveSupport::Configurable
Defined in:
lib/rimless/configuration.rb

Overview

The configuration for the rimless gem.

Instance Method Summary collapse

Instance Method Details

#consumer_job_queue=(val) ⇒ Object

A custom writer for the consumer job queue name.

Parameters:

  • val (String, Symbol)

    the new job queue name



69
70
71
72
73
74
75
# File 'lib/rimless/configuration.rb', line 69

def consumer_job_queue=(val)
  config.consumer_job_queue = val.to_sym
  # Refresh the consumer job queue
  Rimless::ConsumerJob.sidekiq_options(
    queue: Rimless.configuration.consumer_job_queue
  )
end