Method: CustomTable::ApplicationHelper#custom_table_row_data

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

#custom_table_row_data(item, variant = nil, **params) ⇒ Object

Data for updating values via turbo according object id and field name



390
391
392
393
394
395
396
397
398
399
# File 'app/helpers/custom_table/application_helper.rb', line 390

def custom_table_row_data item, variant = nil, **params
  
  params[:item] = item
  params[:variant] = variant
  params[:namespace] = (controller.class.module_parent == Object) ? nil : controller.class.module_parent.to_s.underscore.to_sym
  
  render "custom_table/table_row_data", params do
    yield
  end
end