diff options
author | Jeremy Weathers <jeremy@codekindly.com> | 2019-04-02 16:21:57 -0500 |
---|---|---|
committer | Jeremy Weathers <jeremy@codekindly.com> | 2019-04-19 10:57:42 -0500 |
commit | b08daf48dac4e98076a6eaad5cddc8405ec91af9 (patch) | |
tree | 93a30ee15925bcbd83abe90e4ce9ba6175e8807a /railties/lib | |
parent | 1a5381ff0cf04af68a50bd04f265b9b8199e37b4 (diff) | |
download | rails-b08daf48dac4e98076a6eaad5cddc8405ec91af9.tar.gz rails-b08daf48dac4e98076a6eaad5cddc8405ec91af9.tar.bz2 rails-b08daf48dac4e98076a6eaad5cddc8405ec91af9.zip |
[#35782] Allow loading seeds without ActiveJob (~> 5.2.3)
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index eb2f0e8fca..06b4019fc7 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -552,7 +552,7 @@ module Rails seed_file = paths["db/seeds.rb"].existent.first return unless seed_file - if config.active_job.queue_adapter == :async + if config.try(:active_job)&.queue_adapter == :async with_inline_jobs { load(seed_file) } else load(seed_file) |