rescue added for the previous feature

This commit is contained in:
Harry Bomrah 2013-12-05 17:26:09 +08:00 committed by saurabhbhatia
parent 9db4c787c9
commit d8cf721a5b
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
end
def approve_selected
users = params[:userids]
users = params[:userids] || []
users.each do |user|
approve_method user
end
@ -38,7 +38,7 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
end
def delete_selected
users = params[:userids]
users = params[:userids] || []
users.each do |user|
u = User.find(user)
u.destroy