Sha256: 649551767222183fbd4ae8fcfc91af819f9a87e2b9b3c210ce2188e99d20d411
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
module Netzke module Core module Session # Access to controller sessions def session @@session ||= {} end def session=(s) @@session = s end # 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 # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
netzke-core-0.6.3 | lib/netzke/core/session.rb |