class Merb::BootLoader::MixinSession
Public Class Methods
run()
click to toggle source
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
# 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