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