From c319edf970b238cfc795f54e44de41ddab48ea71 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 20 Mar 2024 09:59:51 -0400 Subject: Fixed mark_spam issue --- app/controllers/admin/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/admin/comments_controller.rb b/app/controllers/admin/comments_controller.rb index d3d948c..6b4bff3 100644 --- a/app/controllers/admin/comments_controller.rb +++ b/app/controllers/admin/comments_controller.rb @@ -51,7 +51,7 @@ class Admin::CommentsController < Admin::AdminController @comment.destroy! flash.notice = "Comment successfully marked as spam." - redirect_back pending_admin_comments_url + redirect_back fallback_location: pending_admin_comments_url end def destroy -- cgit 1.4.1