Sha256: 45b144c1f95f43096203dea2f03c93149a99483c920f727842988c7e643a4c22
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details # Uncomment the :secret if you're not using the cookie session store protect_from_forgery # :secret => '5965eefc93d824a9c145fe8edb6d1a36' init_gettext "al-admin" include ExceptionNotifiable include AuthenticatedSystem before_filter :login_from_cookie filter_parameter_logging :password, :password_confirmation private def default_url_options(options) default_options = {} lang = params["lang"] default_options["lang"] = lang if lang default_options.merge(options) end def current_ldap_user logged_in? ? current_user.ldap_user : nil end def schema @schema ||= current_ldap_user.schema end def authorized? current_ldap_user.connected? end end
Version data entries
4 entries across 4 versions & 1 rubygems