Class: Lato::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Componentable, Layoutable, Sessionable
Defined in:
app/controllers/lato/application_controller.rb

Instance Method Summary collapse

Methods included from Componentable

#lato_index_collection

Methods included from Layoutable

#active_navbar, #active_sidebar, #hide_sidebar, #show_sidebar

Methods included from Sessionable

#authenticate_session, #not_authenticate_session, #session_create, #session_destroy

Instance Method Details

#indexObject



7
8
9
10
# File 'app/controllers/lato/application_controller.rb', line 7

def index
  session_root_path = Lato.config.session_root_path ? main_app.send(Lato.config.session_root_path) : lato.
  redirect_to @session.valid? ? session_root_path : lato.
end