summaryrefslogtreecommitdiff
path: root/app/serializers/request_aware_entity.rb
blob: 1524c1291d83fe9008d8f70477057e9baf00b1be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module RequestAwareEntity
  extend ActiveSupport::Concern

  included do
    include Gitlab::Routing
    include GitlabRoutingHelper
    include Gitlab::Allowable
  end

  def request
    options.fetch(:request)
  end
end