Class: Gitlab::Config::Entry::Validators::ArrayOfHashesValidator
- Inherits:
-
ActiveModel::EachValidator
- Object
- ActiveModel::EachValidator
- Gitlab::Config::Entry::Validators::ArrayOfHashesValidator
show all
- Includes:
- LegacyValidationHelpers
- Defined in:
- lib/gitlab/config/entry/validators.rb
Instance Method Summary
collapse
Instance Method Details
#validate_each(record, attribute, value) ⇒ Object
102
103
104
105
106
|
# File 'lib/gitlab/config/entry/validators.rb', line 102
def validate_each(record, attribute, value)
unless validate_array_of_hashes(value)
record.errors.add(attribute, 'should be an array of hashes')
end
end
|