X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/62a1ec47483803a32c038fb2907afdf45a61b5ee..46d529135013091286f3931223b387c571aecdb9:/config/environment.rb diff --git a/config/environment.rb b/config/environment.rb index 6cf8b261d..e42e87eb7 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -10,8 +10,11 @@ RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION # Set the server URL SERVER_URL = ENV['OSM_SERVER_URL'] || 'www.openstreetmap.org' +# Set the generator +GENERATOR = ENV['OSM_SERVER_GENERATOR'] || 'OpenStreetMap server' + # Application constants needed for routes.rb - must go before Initializer call -API_VERSION = ENV['OSM_API_VERSION'] || '0.5' +API_VERSION = ENV['OSM_API_VERSION'] || '0.6' # Set application status - possible settings are: # @@ -74,10 +77,3 @@ Rails::Initializer.run do |config| # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc end - -# This has to be after the above block for some reason (doesnt pull in /lib/osm.rb?) -POTLATCH_PRESETS = Potlatch::Potlatch.get_presets() - -# Use SQL (faster) or Rails (more elegant) for common Potlatch reads -# getway speedup is approximately x2, whichways approximately x7 -POTLATCH_USE_SQL = true