Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 321b1fc

Browse files
authoredSep 17, 2018
Merge pull request #400 from AdWerx/bug/api-blueprint-route-grouping
Fixes API Blueprint route's always grouping
2 parents 117b82d + 23dd329 commit 321b1fc

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)
Please sign in to comment.