2020-03-09 13:42:32 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-04-08 14:13:33 +05:30
|
|
|
class ResourceWeightEvent < ResourceEvent
|
2020-03-09 13:42:32 +05:30
|
|
|
validates :issue, presence: true
|
|
|
|
|
|
|
|
belongs_to :issue
|
|
|
|
|
|
|
|
scope :by_issue, ->(issue) { where(issue_id: issue.id) }
|
|
|
|
end
|