Sha256: 683a062c5b2ff2de5f6cff85ac0e4823490c5300ad3434c99a36f6e651eb9014

Contents?: true

Size: 678 Bytes

Versions: 4

Compression:

Stored size: 678 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

      # 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

4 entries across 4 versions & 1 rubygems

Version Path
netzke-core-0.6.7 lib/netzke/core/session.rb
netzke-core-0.6.6 lib/netzke/core/session.rb
netzke-core-0.6.5 lib/netzke/core/session.rb
netzke-core-0.6.4 lib/netzke/core/session.rb