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



256
257
258
259
260
# File 'lib/gitlab/config/entry/validators.rb', line 256

def validate_each(record, attribute, value)
  unless validate_array_of_strings_or_regexps(value)
    record.errors.add(attribute, validation_message)
  end
end