Module: RailsApiDoc::ApplicationHelper

Defined in:
app/helpers/rails_api_doc/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#construct_destroy_param(row_values, init_params, nesting) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'app/helpers/rails_api_doc/application_helper.rb', line 4

def construct_destroy_param(row_values, init_params, nesting)
  [
    init_params,
    row_values.store,
    nesting: nesting,
    id: row_values.param&.id,
    name: row_values.name
  ].reduce(&:merge)
end