Skip to content

Commit 23dd329

Browse files
committed
Don't group routes that don't have the same route name
1 parent 117b82d commit 23dd329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation/views/api_blueprint_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(index, configuration)
88

99
def sections
1010
super.map do |section|
11-
routes = section[:examples].group_by { |e| "#{e.route_uri}#{e.route_optionals}" }.map do |route, examples|
11+
routes = section[:examples].group_by { |e| "#{e.route_uri}#{e.route_optionals}#{e.route_name}" }.map do |route, examples|
1212
attrs = fields(:attributes, examples)
1313
params = fields(:parameters, examples)
1414

0 commit comments

Comments
 (0)