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
|
|
|
|
include Gitlab::Routing.url_helpers
|
|
|
|
end
|
2016-11-03 07:54:10 -04:00
|
|
|
|
2016-11-04 10:00:39 -04:00
|
|
|
def request
|
|
|
|
@options.fetch(:request)
|
2016-10-28 08:32:07 -04:00
|
|
|
end
|
|
|
|
end
|