diff --git a/config/environments/development.rb b/config/environments/development.rb index b58382c..cc74530 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -72,6 +72,4 @@ Rails.application.configure do # Apply autocorrection by RuboCop to files generated by `bin/rails generate`. # config.generators.apply_rubocop_autocorrect_after_generate! - # Use a real queuing backend for Active Job (and separate queues per environment). - config.active_job.queue_adapter = :solid_queue end diff --git a/config/environments/production.rb b/config/environments/production.rb index f29c82a..153be7e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -86,10 +86,4 @@ Rails.application.configure do # # Skip DNS rebinding protection for the default health check endpoint. # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } - - # Use a real queuing backend for Active Job (and separate queues per environment). - config.active_job.queue_adapter = :solid_queue - config.solid_queue.connects_to = { database: { writing: :queue } } - - # config.active_job.queue_name_prefix = "family_budget_production" end diff --git a/config/initializers/active_job.rb b/config/initializers/active_job.rb new file mode 100644 index 0000000..26d34fb --- /dev/null +++ b/config/initializers/active_job.rb @@ -0,0 +1,3 @@ +# Use a real queuing backend for Active Job (and separate queues per environment). +Rails.application.config.active_job.queue_adapter = :solid_queue +Rails.application.config.solid_queue.connects_to = { database: { writing: :queue } }