Sha256: 22609e38c0dcc66ac1b8caeedd41397f354196f1cea8993b0182e51c706ed31c
Contents?: true
Size: 521 Bytes
Versions: 17
Compression:
Stored size: 521 Bytes
Contents
require "yaml" Bundler.require(:default, :development, :test) Dir.glob(File.expand_path("lib/**/*.rb")).each do |file| require file end database_config = YAML.load(File.open(File.expand_path("spec/db/database.yml")).read) env = ENV["HISTORIOGRAPHER_ENV"] || "development" db_env_config = database_config[env] if defined?(ActiveRecord::Base) # new settings as specified here: https://devcenter.heroku.com/articles/concurrency-and-database-connections ActiveRecord::Base.establish_connection(db_env_config) end
Version data entries
17 entries across 17 versions & 1 rubygems