Rework application configuration
Use a preinitializer to load the settings from application.yml so that they are available as early as possible. All settings can also be overridden using environment variables. The ad-hoc settins in environment.rb are then moved to this new system so we have one consistent location for settings.
This commit is contained in:
parent
8b9cacd3c2
commit
f07819d81a
33 changed files with 100 additions and 99 deletions
|
@ -12,6 +12,6 @@ ActionController::Base.session = {
|
|||
# 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 or OSM_STATUS == :database_readonly
|
||||
unless STATUS == :database_offline or STATUS == :database_readonly
|
||||
ActionController::Base.session_store = :sql_session_store
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue