Explorar el Código

add orders list file

abiao hace 4 años
padre
commit
9cf3d37afd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      lib/rails_admin/builk_export_order.rb

+ 2 - 1
lib/rails_admin/builk_export_order.rb

@@ -15,13 +15,14 @@ module RailsAdmin
                 register_instance_option :controller do
                     proc do
                         if request.post? # BULK DELETE
+                            p params
                             @objects = list_entries(@model_config, :destroy)
 
                             if @objects.blank?
                                 flash[:error] = t('admin.flash.error', name: pluralize(0, @model_config.label), action: t('admin.actions.delete.done'))
                                 redirect_to index_path
                             else
-                                render @action.template_name
+                                # render @action.template_name
                             end
 
                         elsif request.get # BULK DESTROY