X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8af14faa49deed681fa835dd6bd3f77316b44a55..50b42628f16a11108c32f89b269597137b2c0c34:/config/environment.rb diff --git a/config/environment.rb b/config/environment.rb index 55c2df4ae..61d068ab7 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -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