Class: ActionDispatch::Cookies::NullSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/action_dispatch/middleware/cookies.rb

Overview

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

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object



406
407
408
# File 'lib/action_dispatch/middleware/cookies.rb', line 406

def self.dump(value)
  value
end

.load(value) ⇒ Object



402
403
404
# File 'lib/action_dispatch/middleware/cookies.rb', line 402

def self.load(value)
  value
end