Browse files

corrected the session store config to follow the way it works for rai…

…ls >2.3.0
  • Loading branch information...
1 parent f803233 commit 7b7ff7b6e541b3286ffcb3022d9f05064f354676 @mkristian committed Aug 19, 2009
Showing with 4 additions and 6 deletions.
  1. +4 −6 README.txt
10 README.txt
@@ -24,15 +24,13 @@ is implemented as around filter in rails and gets prepend to the filters of the
=== datamapper session store
-this is just the datamapper compaign to the activerecord_store.
+add in your config/initializers/session.rb
-in config/environment.rb add
+ ActionController::Base.session_store = :datamapper_store
- config.action_controller.session_store = :datamapper_store
+in case you need a memory cache for your sessions on top of it add the following. but be aware that there is no cleanup of the memory session.
-in case you need a memory cache for your sessions add this
- config.action_controller.session = { :cache => true }
+ ActionController::Base.session = { :cache => true }
=== generators for datamapper models

0 comments on commit 7b7ff7b

Please sign in to comment.