Sha256: 71ca9398c378da782530acf4d14268f9db9988f2738d96be5c1ca7d578b9a7a3
Contents?: true
Size: 863 Bytes
Versions: 8
Compression:
Stored size: 863 Bytes
Contents
module Netzke module Core module Session # Should be called by session controller at the moment of successfull login def login session[:_netzke_next_request_is_first_after_login] = true end # Should be called by session controller at the moment of logout def logout session[:_netzke_next_request_is_first_after_logout] = true end def current_user Netzke::Core.controller.respond_to?(Netzke::Core.current_user_method) && Netzke::Core.controller.send(Netzke::Core.current_user_method) || nil end # Register the configuration for the component in the session, and also remember that the code for it has been rendered def reg_component(config) session[:netzke_components] ||= {} session[:netzke_components][config[:name]] = config end end end end
Version data entries
8 entries across 8 versions & 1 rubygems