Skip to content

Commit

Permalink
rm warning about variable shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode committed Feb 11, 2014
1 parent 7a3ef98 commit dafc0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/middleware/cookies.rb
Expand Up @@ -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)
Expand Down

0 comments on commit dafc0ee

Please sign in to comment.