Sha256: 2e076e214f0d3d44829978763a204b17867056b11c394c621f9dcf641b9676cb

Contents?: true

Size: 276 Bytes

Versions: 19

Compression:

Stored size: 276 Bytes

Contents

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

db_conf = {}
if File.exist?(config_path)
  db_conf = YAML.load(ERB.new(File.read(config_path)).result)
end

GEODB = db_conf[Rails.env]

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gb_mapfish_appserver-2.0.0 config/initializers/geodb.rb
gb_mapfish_appserver-1.1.1 config/initializers/geodb.rb
gb_mapfish_appserver-1.1.0 config/initializers/geodb.rb
gb_mapfish_appserver-1.0.6 config/initializers/geodb.rb
gb_mapfish_appserver-1.0.5 config/initializers/geodb.rb
gb_mapfish_appserver-1.0.4 config/initializers/geodb.rb
gb_mapfish_appserver-1.0.3 config/initializers/geodb.rb
gb_mapfish_appserver-1.0.2 config/initializers/geodb.rb
gb_mapfish_appserver-1.0.1 config/initializers/geodb.rb
gb_mapfish_appserver-1.0.0 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.7 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.6 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.5 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.4 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.3 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.2 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.1 config/initializers/geodb.rb
gb_mapfish_appserver-0.9.0 config/initializers/geodb.rb
gb_mapfish_appserver-0.8.7 config/initializers/geodb.rb