Class: Admin::UsersController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/admin/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#close_accountObject


4
5
6
7
8
# File 'app/controllers/admin/users_controller.rb', line 4

def 
  u = User.find()
  u.close_account!
  redirect_to user_search_path, notice: t('admins.user_search.account_closing_scheduled', name: u.username)
end