From c7309bac7374be364f9674cee3b42b9d640c78b7 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 23 Feb 2013 21:05:46 -0500 Subject: [PATCH] catch blank deletion reason exception --- app/controllers/moderator/post/posts_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/moderator/post/posts_controller.rb b/app/controllers/moderator/post/posts_controller.rb index b350d1167..80d58212f 100644 --- a/app/controllers/moderator/post/posts_controller.rb +++ b/app/controllers/moderator/post/posts_controller.rb @@ -3,6 +3,7 @@ module Moderator class PostsController < ApplicationController before_filter :janitor_only, :only => [:delete, :undelete] before_filter :admin_only, :only => [:annihilate] + rescue_from ::PostFlag::Error, :with => :rescue_exception def confirm_delete @post = ::Post.find(params[:id])