Sha256: 0cf27ee5242c7f68d4aa81967108dac15e5712837271132b3824310dd84fafd3
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 KB
Contents
require "godmin/helpers/application" require "godmin/helpers/forms" require "godmin/helpers/navigation" require "godmin/helpers/translations" module Godmin module ApplicationController extend ActiveSupport::Concern included do include Godmin::Helpers::Translations helper Godmin::Helpers::Application helper Godmin::Helpers::Forms helper Godmin::Helpers::Navigation helper Godmin::Helpers::Translations helper_method :authentication_enabled? helper_method :authorization_enabled? helper_method :engine_wrapper before_action :append_view_paths layout "godmin/application" end def welcome; end private def engine_wrapper EngineWrapper.new(self.class) end def append_view_paths append_view_path Godmin::Resolver.new(controller_path, engine_wrapper) end def authentication_enabled? singleton_class.include?(Godmin::Authentication) end def authorization_enabled? singleton_class.include?(Godmin::Authorization) end end end
Version data entries
5 entries across 5 versions & 1 rubygems