2018-07-19 14:43:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-10-28 08:32:07 -04:00
|
|
|
module RequestAwareEntity
|
2016-11-04 10:00:39 -04:00
|
|
|
extend ActiveSupport::Concern
|
2016-11-03 07:54:10 -04:00
|
|
|
|
2016-11-04 10:00:39 -04:00
|
|
|
included do
|
2016-12-21 09:31:49 -05:00
|
|
|
include Gitlab::Routing
|
2017-05-11 11:47:44 -04:00
|
|
|
include GitlabRoutingHelper
|
2016-12-21 09:31:49 -05:00
|
|
|
include Gitlab::Allowable
|
2016-11-04 10:00:39 -04:00
|
|
|
end
|
2016-11-03 07:54:10 -04:00
|
|
|
|
2016-11-04 10:00:39 -04:00
|
|
|
def request
|
2016-12-21 09:31:49 -05:00
|
|
|
options.fetch(:request)
|
2016-11-10 09:32:23 -05:00
|
|
|
end
|
2016-10-28 08:32:07 -04:00
|
|
|
end
|