Skip to content

Commit

Permalink
Do not ignore if route is a constraint
Browse files Browse the repository at this point in the history
The #discover_rack_app method is responsible for finding nested routes within the constraint
  • Loading branch information
felipeelias committed Dec 10, 2012
1 parent 26a1298 commit 087f9d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/api_taster/route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 087f9d9

Please sign in to comment.