Open d4be4st opened 7 years ago
because of instance_eval i need to extend helpers module in each action
instance_eval
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
How did you solve that problem?
because of
instance_eval
i need to extend helpers module in eachaction
example:
maybe introduce something like https://github.com/ruby-grape/grape/blob/master/lib/grape/dsl/helpers.rb