Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Rename scopes to remove duplication

Klaus Zanders85235de7e0b1
diff --git a/app/models/queries/projects/project_query.rb b/app/models/queries/projects/project_query.rb
index 6dab3947a2f..7cfba892f80 100644
--- a/app/models/queries/projects/project_query.rb
+++ b/app/models/queries/projects/project_query.rb
@@ -36,8 +36,8 @@ class Queries::Projects::ProjectQuery < ApplicationRecord
serialize :orders, coder: Queries::Serialization::Orders.new(self)
serialize :selects, coder: Queries::Serialization::Selects.new(self)
- scope :public, -> { where(public: true) }
- scope :private, ->(user = User.current) { where(public: false, user:) }
+ scope :public_lists, -> { where(public: true) }
+ scope :private_lists, ->(user = User.current) { where(public: false, user:) }
def self.model
Project