lib/good_job/configuration.rb in good_job-1.3.5 vs lib/good_job/configuration.rb in good_job-1.3.6
- old
+ new
@@ -56,12 +56,10 @@
# account (e.g. in the +test+ environment, it falls back to +:inline+).
# @return [Symbol]
def rails_execution_mode
if execution_mode(default: nil)
execution_mode
- elsif Rails.env.development?
- :inline
- elsif Rails.env.test?
+ elsif Rails.env.development? || Rails.env.test?
:inline
else
:external
end
end