old_sql 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,7 +69,7 @@ module OldSql
69
69
  end
70
70
 
71
71
  def self.set_connection(env)
72
- dbconfig = YAML::load(File.open(Rails.root.join("config/database.yml")))
72
+ dbconfig = YAML::load(Erubis::Eruby.new(File.read(Rails.root.join("config/database.yml"))).result)
73
73
  ActiveRecord::Base.establish_connection(dbconfig[env])
74
74
  end
75
75
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: old_sql
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.7.0
5
+ version: 1.8.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Eddie Gonzales
@@ -182,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - ">="
184
184
  - !ruby/object:Gem::Version
185
- hash: -649145696799695810
185
+ hash: -2032947249375379625
186
186
  segments:
187
187
  - 0
188
188
  version: "0"