rescue added for the previous feature
This commit is contained in:
parent
9db4c787c9
commit
d8cf721a5b
|
@ -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
|
||||
|
|
Reference in New Issue