Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps <info@camilstaps.nl>2019-07-27 09:26:53 +0300
committerCamil Staps <info@camilstaps.nl>2019-08-07 21:49:37 +0300
commitd4078b535c9854695e770cdfb5e0f4846a8cf64a (patch)
treed018c433af17263a419c41473e589f4e9e28ca38 /app/models/users_star_project.rb
parente726ed5e128893158f102b87e1407ec0a36fc3ce (diff)
Fix public/private starrers counts in special cases
Diffstat (limited to 'app/models/users_star_project.rb')
-rw-r--r--app/models/users_star_project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/users_star_project.rb b/app/models/users_star_project.rb
index baf055dd6dd..3c7a805cc5c 100644
--- a/app/models/users_star_project.rb
+++ b/app/models/users_star_project.rb
@@ -16,6 +16,7 @@ class UsersStarProject < ApplicationRecord
scope :order_user_name_desc, -> { joins(:user).merge(User.order_name_desc) }
scope :by_project, -> (project) { where(project_id: project.id) }
scope :with_visible_profile, -> (user) { joins(:user).merge(User.with_visible_profile(user)) }
+ scope :with_public_profile, -> { joins(:user).merge(User.with_public_profile) }
class << self
def sort_by_attribute(method)