Class: Releaf::Root::SettingsManager

Inherits:
Object
  • Object
show all
Defined in:
lib/releaf/root/settings_manager.rb

Class Method Summary collapse

Class Method Details

.read(controller:, key:) ⇒ Object


4
5
6
# File 'lib/releaf/root/settings_manager.rb', line 4

def self.read(controller:, key:)
  controller.send(:cookies)[key]
end

.write(controller:, key:, value:) ⇒ Object


8
9
10
# File 'lib/releaf/root/settings_manager.rb', line 8

def self.write(controller:, key:, value:)
  controller.send(:cookies)[key] = value
end