Class: ActionDispatch::Cookies::JsonSerializer

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

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object



554
555
556
# File 'lib/action_dispatch/middleware/cookies.rb', line 554

def self.dump(value)
  ActiveSupport::JSON.encode(value)
end

.load(value) ⇒ Object



550
551
552
# File 'lib/action_dispatch/middleware/cookies.rb', line 550

def self.load(value)
  ActiveSupport::JSON.decode(value)
end