Merge branch 'develop' into standalone_develop

This commit is contained in:
2023-03-01 16:29:45 +08:00
71 changed files with 1899 additions and 11 deletions

View File

@@ -178,6 +178,10 @@ class User < Owner
has_many :user_trace_tasks, dependent: :destroy
has_many :feedbacks, dependent: :destroy
has_many :issue_assigners, foreign_key: :assigner_id
has_many :assigned_issues, through: :issue_assigners, source: :issue
has_many :issue_participants, foreign_key: :participant_id
has_many :participant_issues, through: :issue_participants, source: :issue
# Groups and active users
scope :active, lambda { where(status: [STATUS_ACTIVE, STATUS_EDIT_INFO]) }
scope :like, lambda { |keywords|