Class: Gitlab::Config::Entry::Validators::ArrayOfStringsOrRegexpsValidator

Inherits:
RegexpValidator
  • Object
show all
Defined in:
lib/gitlab/config/entry/validators.rb

Instance Method Summary collapse

Instance Method Details

#validate_each(record, attribute, value) ⇒ Object


189
190
191
192
193
# File 'lib/gitlab/config/entry/validators.rb', line 189

def validate_each(record, attribute, value)
  unless validate_array_of_strings_or_regexps(value)
    record.errors.add(attribute, 'should be an array of strings or regexps')
  end
end