Class: ActionDispatch::Cookies::JsonSerializer

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

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object



391
392
393
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 391

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

.load(value) ⇒ Object



387
388
389
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 387

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