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


489
490
491
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 489

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

.load(value) ⇒ Object


485
486
487
# File 'actionpack/lib/action_dispatch/middleware/cookies.rb', line 485

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