debian-mirror-gitlab/app/models/concerns/merge_request_resource_event.rb
2020-05-24 23:13:21 +05:30

11 lines
245 B
Ruby

# frozen_string_literal: true
module MergeRequestResourceEvent
extend ActiveSupport::Concern
included do
belongs_to :merge_request
scope :by_merge_request, ->(merge_request) { where(merge_request_id: merge_request.id) }
end
end