diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-04 16:55:14 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-06 23:46:58 +0900 |
commit | a67aff6d398467099121e7a7b4a542ff531d3f45 (patch) | |
tree | 310b68735bb6bee51319e8575c20e3d42e0cc297 /app/validators | |
parent | 97cc6777368bfe171198af383bf715629e9b076f (diff) | |
download | gitlab-ce-a67aff6d398467099121e7a7b4a542ff531d3f45.tar.gz |
Add Import/Export Setting for trigger_schedule. Remove ref validation.
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/ref_validator.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/validators/ref_validator.rb b/app/validators/ref_validator.rb deleted file mode 100644 index 2024255a770..00000000000 --- a/app/validators/ref_validator.rb +++ /dev/null @@ -1,10 +0,0 @@ -# RefValidator -# -# Custom validator for Ref. -class RefValidator < ActiveModel::EachValidator - def validate_each(record, attribute, value) - unless record.project.repository.branch_exists?(value) - record.errors.add(attribute, " does not exist") - end - end -end |