lib/lita/default_configuration.rb in lita-4.0.0 vs lib/lita/default_configuration.rb in lita-4.0.1
- old
+ new
@@ -96,12 +96,12 @@
root.config :handlers do
handlers.each do |handler|
if handler.configuration_builder.children?
combine(handler.namespace, handler.configuration_builder)
- else
+ elsif handler.respond_to?(:default_config)
old_config = Config.new
- handler.default_config(old_config) if handler.respond_to?(:default_config)
+ handler.default_config(old_config)
config(handler.namespace, default: old_config)
end
end
end
end