Merge pull request #2890 from tchak/allow-to-override-job-adapter

Allow to override active_job adapter
This commit is contained in:
Paul Chavard 2018-11-27 17:35:44 +01:00 committed by GitHub
commit e01162f664
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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