2020-01-02 08:03:23 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-03-01 19:07:41 -05:00
|
|
|
class ResourceWeightEvent < ResourceEvent
|
2020-01-02 08:03:23 -05:00
|
|
|
validates :issue, presence: true
|
|
|
|
|
|
|
|
belongs_to :issue
|
|
|
|
|
|
|
|
scope :by_issue, ->(issue) { where(issue_id: issue.id) }
|
|
|
|
end
|