Skip to content
Snippets Groups Projects
Commit 2ef196de authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Change interpolation to named placeholder in owned_or_shared scope

parent 4ebadb77
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment