Permalink
Browse files

Merge pull request #36 from ivobenedito/24-bugfix-rackapp-discovering

Added condition to rack_app routes iterator
  • Loading branch information...
2 parents 26a1298 + d92abc5 commit 2c0909e5c463c3b92c7e8cf592172f9b6b30814b @fredwu committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/api_taster/route.rb
View
@@ -42,7 +42,7 @@ def normalise_routes!
if (rack_app = discover_rack_app(route.app)) && rack_app.respond_to?(:routes)
rack_app.routes.routes.each do |rack_route|
self.routes << normalise_route(rack_route, route.path.spec)
- end
+ end if rack_app.routes.respond_to?(:routes)
end
next if route.verb.source.empty?

0 comments on commit 2c0909e

Please sign in to comment.