Skip to content

Commit

Permalink
Use delete instead of destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Sep 16, 2020
1 parent f14936b commit e12086b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/uni_updates_batches_controller.rb
Expand Up @@ -9,7 +9,7 @@ def show
def destroy
@uni_updates_batch = UniUpdatesBatch.find_by(batch_id: params[:id])
WebformsMailer.batch_delete_email(@uni_updates_batch).deliver_now
@uni_updates_batch.destroy
@uni_updates_batch.delete
flash[:notice] = 'Batch erased!'
redirect_to root_path
end
Expand Down

0 comments on commit e12086b

Please sign in to comment.