Allow to override active_job adapter

This commit is contained in:
Paul Chavard 2018-10-04 18:41:19 +02:00
parent 85f9e1a2e0
commit 3f62d2b0b6

View file

@ -61,4 +61,9 @@ Rails.application.configure do
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
# This is useful to run rails in development with :async queue adapter
if ENV['RAILS_QUEUE_ADAPTER']
config.active_job.queue_adapter = ENV['RAILS_QUEUE_ADAPTER'].to_sym
end
end