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