Remove redundant rescue_from calls.
These are redundant because ApplicationController rescues these exceptions already.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
module Admin
|
||||
class UsersController < ApplicationController
|
||||
before_filter :moderator_only
|
||||
rescue_from User::PrivilegeError, :with => :access_denied
|
||||
|
||||
def edit
|
||||
@user = User.find(params[:id])
|
||||
|
||||
Reference in New Issue
Block a user