Class: Gitlab::Config::Entry::Validator

Inherits:
SimpleDelegator
  • Object
show all
Includes:
ActiveModel::Validations, Validators
Defined in:
lib/gitlab/config/entry/validator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.nameObject


16
17
18
# File 'lib/gitlab/config/entry/validator.rb', line 16

def self.name
  'Validator'
end

Instance Method Details

#messagesObject


10
11
12
13
14
# File 'lib/gitlab/config/entry/validator.rb', line 10

def messages
  errors.full_messages.map do |error|
    "#{location} #{error}".downcase
  end
end