diff options
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) |