From 57c4a58d0236f2c8e54e0632e75f89846df4bc6f Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sun, 6 Sep 2015 18:06:46 +0200 Subject: Move the request method in to the AbstractCookieJar `CookieJar` is only at the start of the chain and has its own request method, so we don't need it in the module. --- actionpack/lib/action_dispatch/middleware/cookies.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index b292efee5c..0f316be681 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -221,10 +221,6 @@ module ActionDispatch end end - protected - - def request; @parent_jar.request; end - private def upgrade_legacy_signed_cookies? @@ -441,6 +437,9 @@ module ActionDispatch @parent_jar[name] = options end + protected + def request; @parent_jar.request; end + private def parse(name, data); data; end def commit(options); end -- cgit v1.2.3