diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-24 18:09:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-24 18:09:13 +0300 |
commit | 94c1ea61908ce610ba40786e2d80d5701acd8cbf (patch) | |
tree | ad8f2463a5046119c8e4d098fe82bb57d2dc7a09 /app/models | |
parent | 7db8721ff9eeb914afa30da7fb8df07ff6c10796 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/container_repository.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb index 4adbd37608f..0d7ce966537 100644 --- a/app/models/container_repository.rb +++ b/app/models/container_repository.rb @@ -25,8 +25,7 @@ class ContainerRepository < ApplicationRecord .with_container_registry .select(:id) - ContainerRepository - .joins("INNER JOIN (#{project_scope.to_sql}) projects on projects.id=container_repositories.project_id") + joins("INNER JOIN (#{project_scope.to_sql}) projects on projects.id=container_repositories.project_id") end scope :for_project_id, ->(project_id) { where(project_id: project_id) } scope :search_by_name, ->(query) { fuzzy_search(query, [:name], use_minimum_char_limit: false) } |