Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficul't use of helpers #22

Open
d4be4st opened this issue Apr 27, 2017 · 1 comment
Open

Difficul't use of helpers #22

d4be4st opened this issue Apr 27, 2017 · 1 comment
Assignees

Comments

@d4be4st
Copy link
Contributor

d4be4st commented Apr 27, 2017

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
Copy link

stiig commented Apr 10, 2018

How did you solve that problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants