Netzke::Core::Session

Public Instance Methods

current_user() click to toggle source
# 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
login() click to toggle source

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
logout() click to toggle source

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
reg_component(config) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.