lib/otacrawler.rb in otacrawler-0.1.0 vs lib/otacrawler.rb in otacrawler-0.1.1

- old
+ new

@@ -2,10 +2,10 @@ require "yaml" require "mem" require "active_record" module Otacrawler - config = YAML.load(ERB.new(IO.read("database.yml")).result) + config = YAML.load(ERB.new(IO.read(ENV["DATABASE_SETTING_PATH"])).result) ActiveRecord::Base.establish_connection(config["db"]["development"]) class << self include Mem def sites