summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-25 17:46:03 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-25 17:46:03 +0200
commit352f242d8ca491172db49d458f3eae31c70270c8 (patch)
tree5d99a3b6f2b4654bd2e21c2762ce49dcd9c4c2f7 /app
parentb623391720e2687ca88c6bf1166ee571d85807fa (diff)
downloadgitlab-ce-352f242d8ca491172db49d458f3eae31c70270c8.tar.gz
Fix admin runner page -> assign all button
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/project.rb b/app/models/ci/project.rb
index a52e28615f7..8fb54b90d61 100644
--- a/app/models/ci/project.rb
+++ b/app/models/ci/project.rb
@@ -100,7 +100,7 @@ module Ci
def unassigned(runner)
joins("LEFT JOIN #{Ci::RunnerProject.table_name} ON #{Ci::RunnerProject.table_name}.project_id = #{Ci::Project.table_name}.id " \
"AND #{Ci::RunnerProject.table_name}.runner_id = #{runner.id}").
- where('#{Ci::RunnerProject.table_name}.project_id' => nil)
+ where("#{Ci::RunnerProject.table_name}.project_id" => nil)
end
def ordered_by_last_commit_date