summaryrefslogtreecommitdiff
path: root/app/serializers/request_aware_entity.rb
blob: d53fcfb8c1b3d0b2e832ed7f62c8e5bede07ca81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module RequestAwareEntity
  extend ActiveSupport::Concern

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

  def request
    options.fetch(:request)
  end
end