Skip to content

Commit e8ccbc0

Browse files
author
Braktar
committed
remove redundant interpolation
1 parent 9ac60a3 commit e8ccbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape-swagger.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module SwaggerRouting
2626
def combine_routes(app, doc_klass)
2727
app.routes.each do |route|
2828
route_path = route.path
29-
route_match = route_path.split(/^.*?#{route.prefix.to_s}/).last
29+
route_match = route_path.split(/^.*?#{route.prefix}/).last
3030
next unless route_match
3131

3232
route_match = route_match.match('\/([\w|-]*?)[\.\/\(]') || route_match.match('\/([\w|-]*)$')

0 commit comments

Comments
 (0)