Permalink
Browse files

Whoops I messed up the regex. I am still receiving a problem where it…

… is not picking up namespaced routes. Hopefully this new regex match allows it to pick up my API routes.
  • Loading branch information...
1 parent 79cb2ba commit f052d7987607be9cfd28d9101b94209c49d0504c @DanKnox committed Dec 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wadlgen/route_parser.rb
View
2 lib/wadlgen/route_parser.rb
@@ -26,7 +26,7 @@ def get_route_structure(base)
controller = defaults[:controller]
action = defaults[:action]
- next unless controller.match /\/api\//
+ next unless controller.match /api\//
next if action == 'edit'
resource = ress.get_resource(nil, route.path)

0 comments on commit f052d79

Please sign in to comment.