Class: Admin::Users::SessionsController

Inherits:
BaseController
  • Object
show all
Includes:
Devise::Controllers::Helpers
Defined in:
app/controllers/virgo/admin/users/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject


7
8
9
10
11
12
13
# File 'app/controllers/virgo/admin/users/sessions_controller.rb', line 7

def create
  sign_out(current_user)

  (@user)

  redirect_to root_path, flash: {notice: "You have been logged in as #{@user.email}"}
end