summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-06-16 23:20:13 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-06-16 23:20:13 +0800
commit4852acef9256ee60d76564ff7509dc72e016a863 (patch)
tree923a9cd26c6f4f87c127c4a02ef2fc288bf40ef2 /app/models/ci/runner.rb
parent5d76c2553898382531889f001a506eaafcaea56d (diff)
downloadgitlab-ce-4852acef9256ee60d76564ff7509dc72e016a863.tar.gz
Use FIXME instead, feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093/diffs#note_12501400
Diffstat (limited to 'app/models/ci/runner.rb')
-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 8149929f492..fa5cf03baec 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -27,8 +27,8 @@ module Ci
end
scope :available_for, ->(project) do
- # TODO: That `to_sql` is needed to workaround a weird Rails bug.
- # Without that, placeholders would miss one and couldn't match.
+ # FIXME: That `to_sql` is needed to workaround a weird Rails bug.
+ # Without that, placeholders would miss one and couldn't match.
where(locked: false).
where.not("id IN (#{project.runners.select(:id).to_sql})").specific
end