|
|
@ -18,12 +18,12 @@ module Admin |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def approve_all |
|
|
|
def approve_all |
|
|
|
Form::AccountBatch.new(account_ids: User.pending.pluck(:account_id), action: 'approve').save |
|
|
|
Form::AccountBatch.new(current_account: current_account, account_ids: User.pending.pluck(:account_id), action: 'approve').save |
|
|
|
redirect_to admin_pending_accounts_path(current_params) |
|
|
|
redirect_to admin_pending_accounts_path(current_params) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def reject_all |
|
|
|
def reject_all |
|
|
|
Form::AccountBatch.new(account_ids: User.pending.pluck(:account_id), action: 'reject').save |
|
|
|
Form::AccountBatch.new(current_account: current_account, account_ids: User.pending.pluck(:account_id), action: 'reject').save |
|
|
|
redirect_to admin_pending_accounts_path(current_params) |
|
|
|
redirect_to admin_pending_accounts_path(current_params) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|