mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
better rails_app check, fixes #4416
This commit is contained in:
parent
cc1a37d006
commit
25ceba9fb4
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def rails_app?
|
||||
defined?(::Rails)
|
||||
defined?(::Rails) && ::Rails.respond_to?(:application)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue