Sha256: 86e680b0d7d73b76436214ccc2db565c8066da80465d219746b52875333528b1
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 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_path @back_to || request.referer || admin_dashboard_path end def set_locale I18n.locale = admin_user.locale end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typus-3.0.6 | app/controllers/admin/base_controller.rb |
typus-3.0.5 | app/controllers/admin/base_controller.rb |
typus-3.0.4 | app/controllers/admin/base_controller.rb |