changes to fix render problemas for unsupported versioned API

This commit is contained in:
Felipe Knappe 2012-09-28 23:32:12 -03:00
parent 71c5d719fe
commit 8f8f95a38f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module Grape
original_mount mounts
@combined_routes ||= {}
mounts::routes.each do |route|
resource = route.route_path.match('\/(.*?)[\.\/\(]').captures.first || '/'
resource = route.route_path.match('\/(\w*?)[\.\/\(]').captures.first || '/'
@combined_routes[resource.downcase] ||= []
@combined_routes[resource.downcase] << route
end