From 59b6bd2ee8a420c1678d30e0fcb19d501c1da6af Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Fri, 14 Oct 2016 10:16:39 -0700 Subject: [PATCH] holy bananas, fix incorrect monkey logic --- lib/sidekiq/web.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index 9c0575c2..2011abdd 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -193,7 +193,7 @@ module Sidekiq end if defined?(::ActionDispatch::Request::Session) && - !::ActionDispatch::Request::Session.respond_to?(:each) + !::ActionDispatch::Request::Session.method_defined?(:each) # mperham/sidekiq#2460 # Rack apps can't reuse the Rails session store without # this monkeypatch, fixed in Rails 5.