Skip to content

Commit

Permalink
Merge pull request #36 from ivobenedito/24-bugfix-rackapp-discovering
Browse files Browse the repository at this point in the history
Added condition to rack_app routes iterator
  • Loading branch information
fredwu committed Dec 12, 2012
2 parents 26a1298 + d92abc5 commit 2c0909e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_taster/route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 2c0909e

Please sign in to comment.