Sha256: 06877adebae9943e57051081194864b312b8fd0101f65e46e695dfcf02c1bd15
Contents?: true
Size: 950 Bytes
Versions: 3
Compression:
Stored size: 950 Bytes
Contents
require "godmin/helpers/application" require "godmin/helpers/forms" 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::Translations helper_method :authentication_enabled? helper_method :authorization_enabled? before_action :prepend_view_paths layout "godmin/application" end def welcome; end private def prepend_view_paths prepend_view_path Godmin::GodminResolver.new(controller_name) prepend_view_path Godmin::EngineResolver.new(controller_name) end def authentication_enabled? singleton_class.include?(Godmin::Authentication) end def authorization_enabled? singleton_class.include?(Godmin::Authorization) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
godmin-0.11.2 | lib/godmin/application_controller.rb |
godmin-0.11.1 | lib/godmin/application_controller.rb |
godmin-0.11.0 | lib/godmin/application_controller.rb |