about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-03-20 09:59:51 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-03-20 09:59:51 -0400
commitc319edf970b238cfc795f54e44de41ddab48ea71 (patch)
tree10e9afc3cf139207eb8363605b112af20818ef20
parentdc8a572cb66f9b1c9ed947d6179beba350f26fbb (diff)
downloadthoughts-c319edf970b238cfc795f54e44de41ddab48ea71.tar.gz
thoughts-c319edf970b238cfc795f54e44de41ddab48ea71.tar.bz2
thoughts-c319edf970b238cfc795f54e44de41ddab48ea71.zip
Fixed mark_spam issue
-rw-r--r--app/controllers/admin/comments_controller.rb2
1 files changed, 1 insertions, 1 deletions
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
51 @comment.destroy! 51 @comment.destroy!
52 52
53 flash.notice = "Comment successfully marked as spam." 53 flash.notice = "Comment successfully marked as spam."
54 redirect_back pending_admin_comments_url 54 redirect_back fallback_location: pending_admin_comments_url
55 end 55 end
56 56
57 def destroy 57 def destroy