rescue added for the previous feature
This commit is contained in:
parent
9db4c787c9
commit
d8cf721a5b
|
@ -30,7 +30,7 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
|
||||||
end
|
end
|
||||||
|
|
||||||
def approve_selected
|
def approve_selected
|
||||||
users = params[:userids]
|
users = params[:userids] || []
|
||||||
users.each do |user|
|
users.each do |user|
|
||||||
approve_method user
|
approve_method user
|
||||||
end
|
end
|
||||||
|
@ -38,7 +38,7 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_selected
|
def delete_selected
|
||||||
users = params[:userids]
|
users = params[:userids] || []
|
||||||
users.each do |user|
|
users.each do |user|
|
||||||
u = User.find(user)
|
u = User.find(user)
|
||||||
u.destroy
|
u.destroy
|
||||||
|
|
Loading…
Reference in New Issue