2016-10-28 12:32:07 +00:00
|
|
|
module RequestAwareEntity
|
2016-11-03 11:54:10 +00:00
|
|
|
attr_reader :request
|
|
|
|
|
|
|
|
def initialize(object, options = {})
|
|
|
|
super(object, options)
|
|
|
|
|
|
|
|
@request = options.fetch(:request)
|
|
|
|
@urls = Gitlab::Routing.url_helpers
|
2016-10-28 12:32:07 +00:00
|
|
|
end
|
|
|
|
end
|