Class: ActionDispatch::Cookies::JsonSerializer
- Defined in:
- actionpack/lib/action_dispatch/middleware/cookies.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.dump(value) ⇒ Object
517 518 519 |
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 517 def self.dump(value) ActiveSupport::JSON.encode(value) end |
.load(value) ⇒ Object
513 514 515 |
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 513 def self.load(value) ActiveSupport::JSON.decode(value) end |