Method: Datapimp::Configuration#set
- Defined in:
- lib/datapimp/configuration.rb
#set(setting, value, persist = true, options = {}) ⇒ Object
117 118 119 120 121 122 |
# File 'lib/datapimp/configuration.rb', line 117 def set(setting, value, persist = true, ={}) setting = setting.to_s.downcase primary_config[setting] = value save! if persist == true value end |