infinum / dox

Automated API documentation from Rspec
MIT License
238 stars 24 forks source link

Difficul't use of helpers #22

Open d4be4st opened 7 years ago

d4be4st commented 7 years ago

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 6 years ago

How did you solve that problem?