Permalink
Browse files

added condition to routes iterator

  • Loading branch information...
1 parent 26a1298 commit d92abc56ac0b9e830f5a798f2a3e491b166296d5 @ivobenedito ivobenedito committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/api_taster/route.rb
@@ -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 d92abc5

Please sign in to comment.