Use FIXME instead, feedback from:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093/diffs#note_12501400
This commit is contained in:
Lin Jen-Shin 2016-06-16 23:20:13 +08:00
parent 5d76c25538
commit 4852acef92
1 changed files with 2 additions and 2 deletions

View File

@ -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