From 087f9d94c01bf58883d3bdc076f826e14d3778f2 Mon Sep 17 00:00:00 2001 From: Felipe Elias Philipp Date: Mon, 10 Dec 2012 16:47:40 +0100 Subject: [PATCH] Do not ignore if route is a constraint The #discover_rack_app method is responsible for finding nested routes within the constraint --- lib/api_taster/route.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/api_taster/route.rb b/lib/api_taster/route.rb index b2ed85a..3a23132 100644 --- a/lib/api_taster/route.rb +++ b/lib/api_taster/route.rb @@ -35,7 +35,6 @@ 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