Class: Gitlab::Config::Entry::Validators::NestedArrayOfStringsValidator

Inherits:
ArrayOfStringsOrStringValidator show all
Defined in:
lib/gitlab/config/entry/validators.rb

Direct Known Subclasses

StringOrNestedArrayOfStringsValidator

Instance Method Summary collapse

Instance Method Details

#validate_each(record, attribute, value) ⇒ Object


232
233
234
235
236
# File 'lib/gitlab/config/entry/validators.rb', line 232

def validate_each(record, attribute, value)
  unless validate_nested_array_of_strings(value)
    record.errors.add(attribute, 'should be an array containing strings and arrays of strings')
  end
end