]> git.openstreetmap.org Git - rails.git/blob - config/initializers/session_store.rb
Move the i18n loading to an initializer
[rails.git] / config / initializers / session_store.rb
1 # Be sure to restart your server when you modify this file.
2
3 if Settings.key?(:memcache_servers)
4   Rails.application.config.session_store :mem_cache_store, :memcache_server => Settings.memcache_servers, :namespace => "rails:session", :key => "_osm_session"
5 else
6   Rails.application.config.session_store :cache_store, :key => "_osm_session", :cache => ActiveSupport::Cache::MemoryStore.new
7 end