Class: ActionDispatch::Cookies::JsonSerializer
- Inherits:
-
Object
- Object
- ActionDispatch::Cookies::JsonSerializer
- Defined in:
- lib/action_dispatch/middleware/cookies.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.dump(value) ⇒ Object
561 562 563 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 561 def self.dump(value) ActiveSupport::JSON.encode(value) end |
.load(value) ⇒ Object
557 558 559 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 557 def self.load(value) ActiveSupport::JSON.decode(value) end |