Class: Admin::UsersController

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

Instance Method Summary collapse

Instance Method Details

#activateObject


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

def activate
  resource.activate!
  redirect_back fallback_location: admin_users_url
end

#suspendObject


9
10
11
12
# File 'app/controllers/admin/users_controller.rb', line 9

def suspend
  resource.suspend!
  redirect_back fallback_location: admin_users_url
end