1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

holy bananas, fix incorrect monkey logic

This commit is contained in:
Mike Perham 2016-10-14 10:16:39 -07:00
parent 315504e766
commit 59b6bd2ee8

View file

@ -193,7 +193,7 @@ module Sidekiq
end end
if defined?(::ActionDispatch::Request::Session) && if defined?(::ActionDispatch::Request::Session) &&
!::ActionDispatch::Request::Session.respond_to?(:each) !::ActionDispatch::Request::Session.method_defined?(:each)
# mperham/sidekiq#2460 # mperham/sidekiq#2460
# Rack apps can't reuse the Rails session store without # Rack apps can't reuse the Rails session store without
# this monkeypatch, fixed in Rails 5. # this monkeypatch, fixed in Rails 5.