cartodb/config/environment.rb
2020-06-15 10:58:47 +08:00

20 lines
376 B
Ruby

# Load the rails application
require File.expand_path('../application', __FILE__)
require 'carto/configuration'
module Rails
class Application
class Configuration
include Carto::Configuration
def database_configuration
require 'erb'
db_config
end
end
end
end
# Initialize the rails application
CartoDB::Application.initialize!