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 committed Mar 13, 2023
1 parent 62b0a54 commit e3f6a25
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 e3f6a25

Please sign in to comment.