# File lib/netzke/core/session.rb, line 14 def current_user Netzke::Core.controller.respond_to?(Netzke::Core.current_user_method) && Netzke::Core.controller.send(Netzke::Core.current_user_method) || nil end
Should be called by session controller at the moment of successfull login
# File lib/netzke/core/session.rb, line 5 def login session[:_netzke_next_request_is_first_after_login] = true end
Should be called by session controller at the moment of logout
# File lib/netzke/core/session.rb, line 10 def logout session[:_netzke_next_request_is_first_after_logout] = true end
Register the configuration for the component in the session, and also remember that the code for it has been rendered
# File lib/netzke/core/session.rb, line 19 def reg_component(config) session[:netzke_components] ||= {} session[:netzke_components][config[:name]] = config end
Generated with the Darkfish Rdoc Generator 2.