app/models/concerns/fluentd/setting/configurable.rb in fluentd-ui-1.0.1 vs app/models/concerns/fluentd/setting/configurable.rb in fluentd-ui-1.1.0
- old
+ new
@@ -33,9 +33,10 @@
Rails.logger.warn(ex)
end
self.class._sections.each do |name, klass|
klass.init
if klass.multi
+ next if attributes.nil?
next if attributes[name].nil?
attributes[name].each do |attr|
next unless attr
attr.each do |index, _attr|
self._section_params[name] << klass.new(_attr)