Class: Lcms::Engine::Settings

Inherits:
ApplicationRecord show all
Defined in:
app/models/lcms/engine/settings.rb

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object



7
8
9
# File 'app/models/lcms/engine/settings.rb', line 7

def [](key)
  settings.data[key.to_s]
end

.[]=(key, value) ⇒ Object



11
12
13
# File 'app/models/lcms/engine/settings.rb', line 11

def []=(key, value)
  settings.update data: settings.data.merge(key.to_s => value)
end