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