fix prefix detection

This commit is contained in:
Konstantin Haase 2015-01-14 14:22:10 +01:00
parent 5045710487
commit b03e9c5559

View File

@ -18,7 +18,7 @@ class Travis::Api::App
def endpoint
return @endpoint if defined? @endpoint and @endpoint
return unless headers['X-Pattern'].present? and headers['X-Endpoint'].present?
@endpoint = Object.const_get(headers['X-Endpoint']) + headers['X-Pattern']
@endpoint = Object.const_get(headers['X-Endpoint']).prefix + headers['X-Pattern']
end
end
end