Sha256: c9c9d196a89c795c354894e4486e22c95babdfc7e3e33af9059e39daf1563828

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

module Lato

  # ApplicationController.
  class ApplicationController < ::ApplicationController

    # set lato layout
    layout 'lato_core/admin'

    # initialize cells dependencies
    before_action :core__cells_initialize
    # manage superuser session for security
    before_action :core__manage_superuser_session

    def index
      # set current menu active page
      core__set_menu_active_item('sample_page')
      # set current page title
      core__set_header_active_page_title('Sample page')
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lato_core-2.2.2 lib/generators/lato_core/templates/initializer/controllers/application_controller.rb
lato_core-2.2.0 lib/generators/lato_core/templates/initializer/controllers/application_controller.rb
lato_core-2.1.4 lib/generators/lato_core/templates/initializer/controllers/application_controller.rb
lato_core-2.1.3 lib/generators/lato_core/templates/initializer/controllers/application_controller.rb