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