Class: ActionDispatch::Cookies::NullSerializer

Inherits:
Object
  • Object
show all
Defined in:
actionpack/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



404
405
406
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 404

def self.dump(value)
  value
end

.load(value) ⇒ Object



400
401
402
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 400

def self.load(value)
  value
end