Method: Logged::Configuration.init_default_options
- Defined in:
- lib/logged/configuration.rb
.init_default_options(config, ignore_defaults = []) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/logged/configuration.rb', line 17 def self.(config, ignore_defaults = []) DEFAULT_VALUES.each do |key, value| next if ignore_defaults.include?(key) if value.is_a?(Proc) config[key] = value.call else config[key] = value end end end |