Class: ActionDispatch::Cookies::JsonSerializer

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

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object



393
394
395
# File 'lib/action_dispatch/middleware/cookies.rb', line 393

def self.dump(value)
  JSON.generate(value, quirks_mode: true)
end

.load(value) ⇒ Object



389
390
391
# File 'lib/action_dispatch/middleware/cookies.rb', line 389

def self.load(value)
  JSON.parse(value, quirks_mode: true)
end