Sha256: 4952d36783d7f305d0de00e3148be77aa2f9c9f6884a9e42f95bd8dd558541e3

Contents?: true

Size: 854 Bytes

Versions: 8

Compression:

Stored size: 854 Bytes

Contents

module Usman
  class ApplicationController < Kuppayam::BaseController
    
    include Usman::AuthenticationHelper

    layout 'kuppayam/xenon/admin'
    
    before_action :current_user
    before_action :require_user

    helper_method :breadcrumb_home_path
    
    private

    def stylesheet_filename
      @stylesheet_filename = "kuppayam-xenon"
    end

    def javascript_filename
      @javascript_filename = "kuppayam-xenon"
    end
    
    def set_default_title
      set_title("Usman Admin | User Management Module")
    end

    def configure_filter_param_mapping
      @filter_param_mapping = default_filter_param_mapping
      @filter_param_mapping[:super_admin] = :sa
      @filter_param_mapping[:user] = :us
      @filter_param_mapping[:feature] = :ft
    end

    def breadcrumb_home_path
      usman.dashboard_path
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
usman-0.4.7.pre.materialize app/controllers/usman/application_controller.rb
usman-0.4.6.pre.materialize app/controllers/usman/application_controller.rb
usman-0.4.5.pre.materialize app/controllers/usman/application_controller.rb
usman-0.4.4.pre.materialize app/controllers/usman/application_controller.rb
usman-0.4.3.pre.materialize app/controllers/usman/application_controller.rb
usman-0.4.2.pre.materialize app/controllers/usman/application_controller.rb
usman-0.4.1.pre.materialize app/controllers/usman/application_controller.rb
usman-0.4.0.pre.materialize app/controllers/usman/application_controller.rb