Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…ls >2.3.0
  • Loading branch information...
commit 7b7ff7b6e541b3286ffcb3022d9f05064f354676 1 parent f803233
Christian Meier authored August 19, 2009

Showing 1 changed file with 4 additions and 6 deletions. Show diff stats Hide diff stats

  1. 10  README.txt
10  README.txt
@@ -24,15 +24,13 @@ is implemented as around filter in rails and gets prepend to the filters of the
24 24
 
25 25
 === datamapper session store
26 26
 
27  
-this is just the datamapper compaign to the activerecord_store.
  27
+add in your config/initializers/session.rb
28 28
 
29  
-in config/environment.rb add
  29
+    ActionController::Base.session_store = :datamapper_store
30 30
 
31  
-  config.action_controller.session_store = :datamapper_store
  31
+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.
32 32
 
33  
-in case you need a memory cache for your sessions add this
34  
-
35  
-  config.action_controller.session = { :cache => true }
  33
+  ActionController::Base.session = { :cache => true }
36 34
 
37 35
 === generators for datamapper models
38 36
 

0 notes on commit 7b7ff7b

Please sign in to comment.
Something went wrong with that request. Please try again.