mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 20:46:12 +10:00
Change interpolation to named placeholder in owned_or_shared scope
This commit is contained in:
@@ -41,7 +41,7 @@ module Ci
|
||||
|
||||
scope :owned_or_shared, ->(project_id) do
|
||||
joins('LEFT JOIN ci_runner_projects ON ci_runner_projects.runner_id = ci_runners.id')
|
||||
.where("ci_runner_projects.gl_project_id = #{project_id} OR ci_runners.is_shared = true")
|
||||
.where("ci_runner_projects.gl_project_id = :project_id OR ci_runners.is_shared = true", project_id: project_id)
|
||||
end
|
||||
|
||||
acts_as_taggable
|
||||
|
||||
Reference in New Issue
Block a user