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
|
|
|
|
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
|