Skip to content

Commit

Permalink
Merge pull request #400 from AdWerx/bug/api-blueprint-route-grouping
Browse files Browse the repository at this point in the history
Fixes API Blueprint route's always grouping
  • Loading branch information
oestrich authored Sep 17, 2018
2 parents 117b82d + 23dd329 commit 321b1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation/views/api_blueprint_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def initialize(index, configuration)

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

Expand Down

0 comments on commit 321b1fc

Please sign in to comment.