Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@mkristian authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 README.txt
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.