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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix indentation
Christophe Bliard6be1461cca42
diff --git a/app/models/principal.rb b/app/models/principal.rbindex ddd1038391f..0242958910a 100644--- a/app/models/principal.rb+++ b/app/models/principal.rb@@ -47,12 +47,13 @@ class Principal < ApplicationRecordclass_name: 'UserPreference',foreign_key: 'user_id'has_many :members, foreign_key: 'user_id', dependent: :destroy- has_many :memberships, -> {- includes(:project, :roles)- .where(["projects.active = ? OR project_id IS NULL", true])- .order(Arel.sql('projects.name ASC'))- # haven't been able to produce the order using hashes- },+ has_many :memberships,+ -> {+ includes(:project, :roles)+ .where(["projects.active = ? OR project_id IS NULL", true])+ .order(Arel.sql('projects.name ASC'))+ # haven't been able to produce the order using hashes+ },class_name: 'Member',foreign_key: 'user_id'has_many :projects, through: :memberships