Merge pull request #2897 from evazion/fix-rescue_from

Remove redundant rescue_from calls.
This commit is contained in:
Albert Yi
2017-02-27 16:48:44 -08:00
committed by GitHub
12 changed files with 0 additions and 17 deletions

View File

@@ -3,7 +3,6 @@ module Moderator
class PostsController < ApplicationController
before_filter :approver_only, :only => [:delete, :undelete, :move_favorites, :ban, :unban, :confirm_delete, :confirm_move_favorites, :confirm_ban]
before_filter :admin_only, :only => [:expunge]
rescue_from ::PostFlag::Error, ::Post::ApprovalError, :with => :rescue_exception
skip_before_filter :api_check
def confirm_delete