Rework application configuration
authorTom Hughes <tom@compton.nu>
Wed, 4 Aug 2010 21:06:05 +0000 (22:06 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 4 Aug 2010 21:06:05 +0000 (22:06 +0100)
commitf07819d81a7437e58c6e64c2e76ba7e54fad9034
tree66dd659bedf5d0efa0266b1c7e344ebb699d5a7d
parent8b9cacd3c2fa236463819ffeb41980ec57d87faa
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.
33 files changed:
app/controllers/amf_controller.rb
app/controllers/api_controller.rb
app/controllers/application_controller.rb
app/controllers/diary_entry_controller.rb
app/controllers/geocoder_controller.rb
app/controllers/message_controller.rb
app/controllers/trace_controller.rb
app/controllers/user_controller.rb
app/models/node.rb
app/models/notifier.rb
app/models/spam_observer.rb
app/models/user_block.rb
app/models/way.rb
app/views/browse/start.rjs
app/views/export/start.rjs
app/views/layouts/site.html.erb
app/views/site/edit.html.erb
app/views/site/index.html.erb
app/views/site/offline.html.erb
app/views/trace/_trace.html.erb
app/views/trace/view.html.erb
config/application.yml
config/environment.rb
config/initializers/load_configs.rb [deleted file]
config/initializers/memory_limits.rb
config/initializers/session_store.rb
config/initializers/sql_session_store.rb
config/preinitializer.rb [new file with mode: 0644]
lib/map_boundary.rb
lib/osm.rb
lib/quova.rb
test/functional/api_controller_test.rb
test/unit/way_test.rb