Sha256: f01da7c95bc07d321d561c0e67a9929423df0e1d454dee9d4dd77732cdbde4ac

Contents?: true

Size: 493 Bytes

Versions: 10

Compression:

Stored size: 493 Bytes

Contents

module Adminpanel
    class ApplicationController < ::ApplicationController
            layout "admin"
              protect_from_forgery
            include SessionsHelper

            before_filter :signed_in_user

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

            def handle_unverified_request
                sign_out
                super
            end
    end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
adminpanel-0.1.1 app/controllers/adminpanel/application_controller.rb
adminpanel-0.1.0cl.2 app/controllers/adminpanel/application_controller.rb
adminpanel-0.1.0cl app/controllers/adminpanel/application_controller.rb
adminpanel-0.1.0 app/controllers/adminpanel/application_controller.rb
adminpanel-0.0.7 app/controllers/adminpanel/application_controller.rb
adminpanel-0.0.6.1 app/controllers/adminpanel/application_controller.rb
adminpanel-0.0.6 app/controllers/adminpanel/application_controller.rb
adminpanel-0.0.5 app/controllers/adminpanel/application_controller.rb
adminpanel-0.0.4 app/controllers/adminpanel/application_controller.rb
adminpanel-0.0.3 app/controllers/adminpanel/application_controller.rb