Method: DashCreator::DashboardController#delete_dashboards
- Defined in:
- app/controllers/dash_creator/dashboard_controller.rb
#delete_dashboards ⇒ Object
31 32 33 34 35 |
# File 'app/controllers/dash_creator/dashboard_controller.rb', line 31 def delete_dashboards # user = user_for_dash_creator # DashCreator::Dashboard.all.where(user_id: user.id, id: params[:dashboards_ids]).destroy_all DashCreator::Dashboard.all.where(id: params[:dashboards_ids]).destroy_all end |