Class: ActionDispatch::Cookies::MarshalWithJsonFallback
- Inherits:
-
Object
- Object
- ActionDispatch::Cookies::MarshalWithJsonFallback
- Defined in:
- lib/action_dispatch/middleware/cookies.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.dump(value) ⇒ Object
540 541 542 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 540 def self.dump(value) Marshal.dump(value) end |
.load(value) ⇒ Object
534 535 536 537 538 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 534 def self.load(value) Marshal.load(value) rescue TypeError => e ActiveSupport::JSON.decode(value) rescue raise e end |