Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-04 10:55:14 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 17:46:58 +0300
commita67aff6d398467099121e7a7b4a542ff531d3f45 (patch)
tree310b68735bb6bee51319e8575c20e3d42e0cc297 /app/validators
parent97cc6777368bfe171198af383bf715629e9b076f (diff)
Add Import/Export Setting for trigger_schedule. Remove ref validation.
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/ref_validator.rb10
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