diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-17 15:03:39 +0300 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-19 15:18:48 +0300 |
commit | 2ef196deb2c110d0c60d55f467f3116912841bea (patch) | |
tree | 3693206cfd4d53c4826484cb31f04324e5a88740 | |
parent | 4ebadb77dd3a6f30728d039dad5ee240d0f44a63 (diff) |
Change interpolation to named placeholder in owned_or_shared scope
-rw-r--r-- | app/models/ci/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb index 1e914b44499..e725a6d468c 100644 --- a/app/models/ci/runner.rb +++ b/app/models/ci/runner.rb @@ -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 |