]> git.openstreetmap.org Git - rails.git/blob - config/initializers/session_store.rb
When asked to edit an object centre on the correct location
[rails.git] / config / initializers / session_store.rb
1 # Be sure to restart your server when you modify this file.
2
3 if STATUS == :database_offline or STATUS == :database_readonly
4   OpenStreetMap::Application.config.session_store :cookie_store, :key => '_osm_session'
5 else
6   ActiveRecord::SessionStore.session_class = ActiveRecord::SessionStore::SqlBypass
7   OpenStreetMap::Application.config.session_store :active_record_store, :key => '_osm_session'
8 end