From 312bcfe6a5487d45c5fa6dd353b92f24912f8e7c Mon Sep 17 00:00:00 2001 From: Dominik Masur Date: Wed, 25 Jul 2012 17:38:26 +0300 Subject: [PATCH] Ignore Constraints --- lib/api_taster/route.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/api_taster/route.rb b/lib/api_taster/route.rb index 06fd747..f0e05d5 100644 --- a/lib/api_taster/route.rb +++ b/lib/api_taster/route.rb @@ -31,6 +31,7 @@ def normalise_routes! end route_set.routes.each do |route| + next if route.app.is_a?(ActionDispatch::Routing::Mapper::Constraints) next if route.app.is_a?(Sprockets::Environment) next if route.app == ApiTaster::Engine