Remove unused code

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-06-21 11:21:10 +09:00
parent 66f5d8424f
commit bf8c04fb8f
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1

View File

@ -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