Skip to content

Commit

Permalink
corrected the session store config to follow the way it works for rai…
Browse files Browse the repository at this point in the history
…ls >2.3.0
  • Loading branch information
mkristian committed Aug 19, 2009
1 parent f803233 commit 7b7ff7b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.txt
Expand Up @@ -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

Expand Down

0 comments on commit 7b7ff7b

Please sign in to comment.