diff options
author | shioimm <shioi.mm@gmail.com> | 2019-05-18 17:41:58 +0900 |
---|---|---|
committer | shioimm <shioi.mm@gmail.com> | 2019-05-18 17:41:58 +0900 |
commit | f5e2d9838ad3d9e3cdb563fd5cfbfffce7bcfc9a (patch) | |
tree | 399235e2bba510e94053591359073df9afc16c0a /actionpack/lib | |
parent | aa7da0471f7fcf2adbbc26c37a25914d8493928d (diff) | |
download | rails-f5e2d9838ad3d9e3cdb563fd5cfbfffce7bcfc9a.tar.gz rails-f5e2d9838ad3d9e3cdb563fd5cfbfffce7bcfc9a.tar.bz2 rails-f5e2d9838ad3d9e3cdb563fd5cfbfffce7bcfc9a.zip |
Rename `hash` to `jar` in CookieJar.build
In CookieJar.build, the name `hash` is used as block parameter name
for tap method.
However, it is actually not hash but a CookieJar's instance.
The name `hash` was confusing, so replace with `jar`.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index b69bcab05c..dac60a13c6 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -287,8 +287,8 @@ module ActionDispatch DOMAIN_REGEXP = /[^.]*\.([^.]*|..\...|...\...)$/ def self.build(req, cookies) - new(req).tap do |hash| - hash.update(cookies) + new(req).tap do |jar| + jar.update(cookies) end end |