Class: Adminpanel::ApplicationController

Inherits:
ApplicationController
  • Object
show all
Includes:
SessionsHelper
Defined in:
app/controllers/adminpanel/application_controller.rb

Instance Method Summary collapse

Methods included from SessionsHelper

#current_user, #current_user=, #sign_in, #sign_out, #signed_in?

Instance Method Details

#handle_unverified_request ⇒ Object



13
14
15
16
# File 'app/controllers/adminpanel/application_controller.rb', line 13

def handle_unverified_request
    sign_out
    super
end

#signed_in_user ⇒ Object



9
10
11
# File 'app/controllers/adminpanel/application_controller.rb', line 9

def signed_in_user
    redirect_to , :notice => "Favor de Iniciar sesion" unless signed_in?
end