Flowdock
method

deserialize

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: SerializedCookieJars
deserialize(name) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 538
        def deserialize(name)
          rotate = false
          value  = yield -> { rotate = true }

          if value
            case
            when needs_migration?(value)
              self[name] = Marshal.load(value)
            when rotate
              self[name] = serializer.load(value)
            else
              serializer.load(value)
            end
          end
        end
Register or log in to add new notes.