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

resource_weight_event.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e0cc0c87a830bd25c514eb3842d8d0be795705ec (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class ResourceWeightEvent < ResourceEvent
  validates :issue, presence: true

  belongs_to :issue

  scope :by_issue, ->(issue) { where(issue_id: issue.id) }
end