summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-18 18:38:21 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-19 22:01:53 +0200
commitc3c503d259bbf4691f0fb24fcd713ec5b4474e61 (patch)
treeb371fc7a48abacbb2993101c54b0ba69ebdcd5e2 /app/models
parent52ba3a2d05ab93caa5ddbc6207359e99301dda91 (diff)
downloadgitlab-ce-c3c503d259bbf4691f0fb24fcd713ec5b4474e61.tar.gz
Rename method that validates runner tag constrains
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/runner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index cf4d3236519..6829dc91cb9 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -26,7 +26,7 @@ module Ci
.where("ci_runner_projects.gl_project_id = :project_id OR ci_runners.is_shared = true", project_id: project_id)
end
- validate :verify_tags_constraints
+ validate :tag_constraints
acts_as_taggable
@@ -105,7 +105,7 @@ module Ci
private
- def verify_tags_constraints
+ def tag_constraints
unless has_tags? || run_untagged?
errors.add(:tags_list,
'can not be empty when runner is not allowed to pick untagged jobs')