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

Version Path
historiographer-4.1.0 /Users/brettshollenberger/programming/historiographer/init.rb
historiographer-4.0.0 init.rb
historiographer-3.1.2 init.rb
historiographer-3.1.1 init.rb
historiographer-3.1.0 init.rb
historiographer-3.0.0 init.rb
historiographer-2.0.1 init.rb
historiographer-2.0.0 init.rb
historiographer-1.4.3 init.rb
historiographer-1.4.1 init.rb
historiographer-1.4.0 init.rb
historiographer-1.3.1 init.rb
historiographer-1.3.0 init.rb
historiographer-1.2.0 init.rb
historiographer-1.1.0 init.rb
historiographer-1.0.2 init.rb
historiographer-1.0.0 init.rb