Permalink
Browse files

rm warning about variable shadowing

  • Loading branch information...
1 parent 7a3ef98 commit dafc0eef4dd3393864e7b28bf74c8e7834083d60 @chancancode chancancode committed Feb 11, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -412,8 +412,8 @@ def serialize(name, value)
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)

0 comments on commit dafc0ee

Please sign in to comment.