gitlab-org--gitlab-foss/app/serializers/request_aware_entity.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
258 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-10-28 08:32:07 -04:00
module RequestAwareEntity
extend ActiveSupport::Concern
included do
include Gitlab::Routing
include GitlabRoutingHelper
include Gitlab::Allowable
end
def request
options.fetch(:request, nil)
end
2016-10-28 08:32:07 -04:00
end