added application.yml, refactored map method

This commit is contained in:
Xin Zheng 2008-01-23 16:43:30 +00:00
parent ea132b001d
commit 6de965520b
6 changed files with 66 additions and 28 deletions

16
config/application.yml Normal file
View file

@ -0,0 +1,16 @@
standard_settings: &standard_settings
# The maximum area you're allowed to request, in square degrees
max_request_area: 0.25
# Number of GPS trace/trackpoints returned per-page
tracepoints_per_page: 5000
# Maximum number of nodes
max_number_of_nodes: 50000
development:
<<: *standard_settings
production:
<<: *standard_settings
test:
<<: *standard_settings

View file

@ -0,0 +1,10 @@
# This file loads various yml configuration files
# Load application config
APP_CONFIG = YAML.load(File.read(RAILS_ROOT + "/config/application.yml"))[RAILS_ENV]
# This will let you more easily use helpers based on url_for in your mailers.
ActionMailer::Base.default_url_options[:host] = APP_CONFIG['host']
# Load texts in a particular language
TEXT = YAML.load(File.read(RAILS_ROOT + "/config/text_outputs/en.yml"))

View file

@ -0,0 +1,3 @@
boundary_parameter_required: "The parameter bbox is required, and must be of the form min_lon,min_lat,max_lon,max_lat"