Created
March 17, 2009 07:04
-
-
Save deepthawtz/80376 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Merb::BootLoader::MixinSession < Merb::BootLoader | |
| # 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 | |
| def self.run | |
| require 'merb-core/dispatch/session' | |
| Merb::Controller.send(:include, ::Merb::SessionMixin) | |
| Merb::Request.send(:include, ::Merb::SessionMixin::RequestMixin) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment