Skip to content

Commit

Permalink
Don't display method param in list of parameters
Browse files Browse the repository at this point in the history
This extra param is only used internally to get the value of the parameter for spec examples.
  • Loading branch information
budu authored Dec 11, 2020
1 parent 5b85680 commit 396aa9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/apitome/docs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def param_headers(params)

def param_extras(params)
params.map do |param|
param.reject { |k, _v| %w{name description required scope}.include?(k) }.keys
param.reject { |k, _v| %w{name description required scope method}.include?(k) }.keys
end.flatten.uniq
end

Expand Down

0 comments on commit 396aa9b

Please sign in to comment.