]> git.openstreetmap.org Git - rails.git/blobdiff - config/environment.rb
Convert trace views to use CSS based user specific components
[rails.git] / config / environment.rb
index 55c2df4ae4185ed2d28e3ef3e0faaf35659000bc..61d068ab7b9ca256c7922331226921d491b593bd 100644 (file)
@@ -44,6 +44,7 @@ Rails::Initializer.run do |config|
   # To use Rails without a database, you must remove the Active Record framework
   if OSM_STATUS == :database_offline
     config.frameworks -= [ :active_record ]
+    config.eager_load_paths = []
   end
 
   # Specify gems that this application depends on.
@@ -88,7 +89,7 @@ Rails::Initializer.run do |config|
   # Use the database for sessions instead of the cookie-based default,
   # which shouldn't be used to store highly confidential information
   # (create the session table with 'rake db:sessions:create')
-  unless  OSM_STATUS == :database_offline
+  unless OSM_STATUS == :database_offline or OSM_STATUS == :database_readonly
     config.action_controller.session_store = :sql_session_store
   end