1
0
Fork 0
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:
Mike Perham 2020-01-08 08:46:49 -08:00
parent cc1a37d006
commit 25ceba9fb4

View file

@ -381,7 +381,7 @@ module Sidekiq
end
def rails_app?
defined?(::Rails)
defined?(::Rails) && ::Rails.respond_to?(:application)
end
end
end