Method: SuperSettings::LocalCache#update_setting
- Defined in:
- lib/super_settings/local_cache.rb
#update_setting(setting) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Update a single setting directly into the cache.
202 203 204 205 206 207 208 |
# File 'lib/super_settings/local_cache.rb', line 202 def update_setting(setting) return if Coerce.blank?(setting.key) @lock.synchronize do @cache = @cache.merge(setting.key => setting.value) end end |