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
|