373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
|
# File 'app/helpers/custom_table/application_helper.rb', line 373
def custom_table_data collection, variant=nil, **params
params[:collection] = collection
params[:variant] = variant
params[:paginate] = true if params[:paginate]!=false
params[:last_page] = true if params[:last_page]!=false
params[:namespace] = (controller.class.module_parent == Object) ? nil : controller.class.module_parent.to_s.underscore.to_sym
params[:modal_edit] = true if params[:modal_edit].nil?
params[:with_select] = true if params[:with_select].nil? && params[:batch_actions]
params[:batch_activator] = true if params[:batch_activator].nil? && params[:batch_actions] === true
render "custom_table/table", params do
yield
end
end
|