diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-02-11 03:56:35 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-02-11 03:56:35 -0800 |
commit | dafc0eef4dd3393864e7b28bf74c8e7834083d60 (patch) | |
tree | 9b71f5939cc98f984b510b8909fef5b99d79ee23 /actionpack/lib | |
parent | 7a3ef9842b3cbfe6dbe14700086824d163ce4d51 (diff) | |
download | rails-dafc0eef4dd3393864e7b28bf74c8e7834083d60.tar.gz rails-dafc0eef4dd3393864e7b28bf74c8e7834083d60.tar.bz2 rails-dafc0eef4dd3393864e7b28bf74c8e7834083d60.zip |
rm warning about variable shadowing
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 31341dba63..18e64704f6 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -412,8 +412,8 @@ module ActionDispatch def deserialize(name, value) if value if needs_migration?(value) - Marshal.load(value).tap do |value| - self[name] = { value: value } + Marshal.load(value).tap do |v| + self[name] = { value: v } end else serializer.load(value) |