diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-18 19:38:21 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-05-19 23:01:53 +0300 |
commit | c3c503d259bbf4691f0fb24fcd713ec5b4474e61 (patch) | |
tree | b371fc7a48abacbb2993101c54b0ba69ebdcd5e2 /app | |
parent | 52ba3a2d05ab93caa5ddbc6207359e99301dda91 (diff) |
Rename method that validates runner tag constrains
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/runner.rb | 4 |
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') |