summaryrefslogtreecommitdiff
path: root/app/serializers/request_aware_entity.rb
blob: 04caba43cf42f7bdd321035538dddc4f3a1b9dac (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, nil)
  end
end