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

issue_assignee.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0663d3aaef8b472ac377c69c3106dc323fc658be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class IssueAssignee < ActiveRecord::Base
  extend Gitlab::CurrentSettings

  belongs_to :issue
  belongs_to :assignee, class_name: "User", foreign_key: :user_id

  after_create :update_assignee_cache_counts
  after_destroy :update_assignee_cache_counts

  def update_assignee_cache_counts
    assignee&.update_cache_counts
  end
end