Sha256: 754608cab98a7d4e9b7f60d9b9a9b1d8b5392f80065db40c98e2eff96b1df4a8

Contents?: true

Size: 247 Bytes

Versions: 14

Compression:

Stored size: 247 Bytes

Contents

config_path = File.join(Rails.root,'config','geodatabase.yml')

db_conf = File.exist?(config_path) ? YAML::load(File.open(config_path)) : {}
 
GEODB = db_conf[Rails.env]

puts "Warning: No geodb configuration found in #{config_path}" if GEODB.nil?

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gb_mapfish_appserver-0.8.6 config/initializers/geodb.rb
gb_mapfish_appserver-0.8.5 config/initializers/geodb.rb
gb_mapfish_appserver-0.8.4 config/initializers/geodb.rb
gb_mapfish_appserver-0.8.3 config/initializers/geodb.rb
gb_mapfish_appserver-0.8.2 config/initializers/geodb.rb
gb_mapfish_appserver-0.8.1 config/initializers/geodb.rb
gb_mapfish_appserver-0.8.0 config/initializers/geodb.rb
gb_mapfish_appserver-0.0.7 config/initializers/geodb.rb
gb_mapfish_appserver-0.0.6 config/initializers/geodb.rb
gb_mapfish_appserver-0.0.5 config/initializers/geodb.rb
gb_mapfish_appserver-0.0.4 config/initializers/geodb.rb
gb_mapfish_appserver-0.0.3 config/initializers/geodb.rb
gb_mapfish_appserver-0.0.2 config/initializers/geodb.rb
gb_mapfish_appserver-0.0.1 config/initializers/geodb.rb