From 85e8f27047826528f84dfb3edb2adfef1e6b095b Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Fri, 25 Jan 2013 22:13:33 +0100 Subject: [PATCH] hotfix for strange bug --- lib/travis/api/app/base.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/travis/api/app/base.rb b/lib/travis/api/app/base.rb index 4ab5af58..90c73b42 100644 --- a/lib/travis/api/app/base.rb +++ b/lib/travis/api/app/base.rb @@ -18,6 +18,11 @@ class Travis::Api::App "This feature has not yet been implemented. Sorry :(\n\nPull Requests welcome!" end + # hotfix?? + def route_missing + @app ? forward : halt 404 + end + def call(env) super rescue Sinatra::NotFound