Class: ActionDispatch::Cookies::JsonSerializer

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

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object


400
401
402
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 400

def self.dump(value)
  ActiveSupport::JSON.encode(value)
end

.load(value) ⇒ Object


396
397
398
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 396

def self.load(value)
  ActiveSupport::JSON.decode(value)
end