Use FIXME instead, feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093/diffs#note_12501400
This commit is contained in:
parent
5d76c25538
commit
4852acef92
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue