diff --git a/app/controllers/errs_controller.rb b/app/controllers/errs_controller.rb index 9f468f2..1797e71 100644 --- a/app/controllers/errs_controller.rb +++ b/app/controllers/errs_controller.rb @@ -114,7 +114,9 @@ class ErrsController < ApplicationController end def destroy_several - @selected_problems.each(&:destroy) + @selected_problems.each{|problem| + ProblemDestroy.new(problem).execute + } flash[:notice] = "#{pluralize(@selected_problems.count, 'err has', 'errs have')} been deleted." redirect_to :back end -- libgit2 0.21.2