mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Ensure Rails module has #env (#3403)
This commit is contained in:
parent
ce9b503ab1
commit
28618ec44a
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ module Sidekiq
|
|||
end
|
||||
end
|
||||
|
||||
if defined?(::Rails) && !Rails.env.test?
|
||||
if defined?(::Rails) && Rails.respond_to?(:env) && !Rails.env.test?
|
||||
puts("**************************************************")
|
||||
puts("⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.")
|
||||
puts("**************************************************")
|
||||
|
|
Loading…
Add table
Reference in a new issue