Sha256: a6a2a664f666dfb68aaa7d6de218751c1d82155c47064166b4760b062a1760d3
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
class Admin::BaseController < ActionController::Base render_inheritable include Typus::Authentication::const_get(Typus.authentication.to_s.classify) before_filter :set_models_constantized before_filter :reload_config_and_roles before_filter :authenticate before_filter :set_locale helper_method :admin_user def user_guide end protected def set_models_constantized Typus::Configuration.models_constantized! end def reload_config_and_roles Typus.reload! unless Rails.env.production? end def set_locale I18n.locale = admin_user.locale if admin_user.respond_to?(:locale) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typus-3.0.10 | app/controllers/admin/base_controller.rb |
typus-3.0.9 | app/controllers/admin/base_controller.rb |