Class: Merb::BootLoader::MixinSession

Inherits:
Merb::BootLoader show all
Defined in:
lib/merb-core/bootloader.rb

Class Method Summary collapse

Methods inherited from Merb::BootLoader

after, after_app_loads, before, before_app_loads, before_master_shutdown, before_worker_shutdown, default_framework, finished?, inherited, move_klass

Class Method Details

.runObject

Mixin the session functionality; this is done before BeforeAppLoads so that SessionContainer and SessionStoreContainer can be subclassed by plugin session stores for example - these need to be loaded in a before_app_loads block or a BootLoader that runs after MixinSession.

Note: access to Merb::Config is needed, so it needs to run after Merb::BootLoader::Dependencies is done.

Returns

nil

:api: plugin



594
595
596
597
598
# File 'lib/merb-core/bootloader.rb', line 594

def self.run
  require 'merb-core/dispatch/session'
  Merb::Controller.send(:include, ::Merb::SessionMixin)
  Merb::Request.send(:include, ::Merb::SessionMixin::RequestMixin)
end