dox icon indicating copy to clipboard operation
dox copied to clipboard

Difficul't use of helpers

Open d4be4st opened this issue 7 years ago • 1 comments

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

d4be4st avatar Apr 27 '17 10:04 d4be4st

How did you solve that problem?

stiig avatar Apr 10 '18 12:04 stiig