ActionDispatch::Cookies::NullSerializer

class ActionDispatch::Cookies::NullSerializer

Parent:
Object

Passing the NullSerializer downstream to the Message{Encryptor,Verifier} allows us to handle the (de)serialization step within the cookie jar, which gives us the opportunity to detect and migrate legacy cookies.

Public Class Methods

dump(value) Show source
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 406
def self.dump(value)
  value
end
load(value) Show source
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 402
def self.load(value)
  value
end

© 2004–2016 David Heinemeier Hansson
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部