Module: Merb::SessionMixin::RequestMixin::ClassMethods

Defined in:
lib/merb-core/dispatch/session.rb

Instance Method Summary collapse

Instance Method Details

#register_session_type(name, class_name) ⇒ Object

Parameters

name<~to_sym>

Name of the session type to register.

class_name<String>

The corresponding class name.

Notres

This is automatically called when Merb::SessionContainer is subclassed.

:api: private



153
154
155
# File 'lib/merb-core/dispatch/session.rb', line 153

def register_session_type(name, class_name)
  self.registered_session_types[name.to_sym] = class_name
end