mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-11 13:56:10 +02:00
Remove unused code
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
66f5d8424f
commit
bf8c04fb8f
@ -1,22 +0,0 @@
|
||||
class Fluentd
|
||||
module Setting
|
||||
module SectionValidator
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
validate :validate_sections
|
||||
end
|
||||
|
||||
def validate_sections
|
||||
self._section_params.each do |name, sections|
|
||||
sections.each do |section|
|
||||
next if section.attributes.values.all?(&:blank?)
|
||||
if section.invalid?
|
||||
errors.add(name, :invalid, message: section.errors.full_messages)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user