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

add acts_as_favorable to ProjectQuery

Ivan Kuchin5685f844da46
diff --git a/app/models/project_query.rb b/app/models/project_query.rb
index bf5aaaca35c..f7bb92f27f9 100644
--- a/app/models/project_query.rb
+++ b/app/models/project_query.rb
@@ -34,6 +34,8 @@ class ProjectQuery < ApplicationRecord
belongs_to :user
+ acts_as_favorable
+
serialize :filters, coder: Queries::Serialization::Filters.new(self)
serialize :orders, coder: Queries::Serialization::Orders.new(self)
serialize :selects, coder: Queries::Serialization::Selects.new(self)