]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/sql_session_store.rb
Switch to using the rails-i18n-updater gem instead of the rails-i18n plugin
[rails.git] / config / initializers / sql_session_store.rb
index d2fc9801af75e4ab976f7d99b5a38085a275e32d..8dc40384e07cef9f86c5c8fc80217cf36bba848b 100644 (file)
@@ -1,9 +1,8 @@
 # Work out which session store adapter to use
-environment = Rails.configuration.environment
-adapter = Rails.configuration.database_configuration[environment]["adapter"]
+adapter = Rails.configuration.database_configuration[Rails.env]["adapter"]
 session_class = adapter + "_session"
 
 # Configure SqlSessionStore
-unless  STATUS == :database_offline
+unless STATUS == :database_offline
   SqlSessionStore.session_class = session_class.camelize.constantize
 end