Class: ActionDispatch::Cookies::JsonSerializer
- Inherits:
-
Object
- Object
- ActionDispatch::Cookies::JsonSerializer
- Defined in:
- lib/action_dispatch/middleware/cookies.rb
Class Method Summary collapse
Class Method Details
.dump(value) ⇒ Object
391 392 393 |
# File '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 'lib/action_dispatch/middleware/cookies.rb', line 387 def self.load(value) JSON.parse(value, quirks_mode: true) end |