diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 15:09:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 15:09:11 +0000 |
commit | 0eb3d2f799ce4f4de87fb9fc6fd98e592323bc89 (patch) | |
tree | fd70d5bc63fe152e0a67aaa5a70e4c9f16dc6ffc /app/models/project.rb | |
parent | 5564275a0b378298dc6281599cbfe71a937109ff (diff) | |
download | gitlab-ce-0eb3d2f799ce4f4de87fb9fc6fd98e592323bc89.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 8a751b0d706..667618ae1bd 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -548,8 +548,8 @@ class Project < ApplicationRecord ) end - def self.wrap_authorized_projects_with_cte(collection) - cte = Gitlab::SQL::CTE.new(:authorized_projects, collection) + def self.wrap_with_cte(collection) + cte = Gitlab::SQL::CTE.new(:projects_cte, collection) Project.with(cte.to_arel).from(cte.alias_to(Project.arel_table)) end |