Sha256: 7fbae3b981be79c982eb612eb1454858773598ea4b16de61a4e4bc39ae4d52eb

Contents?: true

Size: 591 Bytes

Versions: 9

Compression:

Stored size: 591 Bytes

Contents

module Itsf::Backend
  class HomeController < Configuration.home_base_controller.constantize
    helper Itsf::Backend::ApplicationHelper
    helper MultiClientHelper if Itsf::Backend.features?(:multi_client)

    if Itsf::Backend.features?(:pundit)
      include Pundit
      prepend Controller::PunditNamespacedAuthorizeConcern
      helper_method :engine_policy
    end

    layout 'itsf/backend/base'

    helper_method :engine

    def self.engine
      "#{name.deconstantize}::Engine".constantize
    end

    def engine
      self.class.engine
    end

    def index
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
itsf_backend-1.1.7 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.1.6 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.1.5 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.1.4 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.1.3 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.1.2 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.1.1 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.1.0 app/controllers/itsf/backend/home_controller.rb
itsf_backend-1.0.1 app/controllers/itsf/backend/home_controller.rb