Difficul't use of helpers
Opened this issue · 1 comments
d4be4st commented
because of instance_eval
i need to extend helpers module in each action
example:
document :index do
action 'Order Index' do
extend ApiDoc::Shared
params index_params
path "/api/{version}/orders{?#{param_keys(index_params)}}"
end
end
maybe introduce something like https://github.com/ruby-grape/grape/blob/master/lib/grape/dsl/helpers.rb
stiig commented
How did you solve that problem?