matthuhiggins-foreigner 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/foreigner.rb +3 -3
  2. metadata +1 -1
data/lib/foreigner.rb CHANGED
@@ -14,8 +14,8 @@ module ActiveRecord
14
14
  end
15
15
 
16
16
  Base.class_eval do
17
- if %w(MySQL PostgreSQL).include? connection.adapter_name
18
- require "foreigner/connection_adapters/#{connection.adapter_name.downcase}_adapter"
17
+ if %w(mysql postgresql).include? connection_pool.spec.config[:adapter].downcase
18
+ require "foreigner/connection_adapters/#{connection_pool.spec.config[:adapter].downcase}_adapter"
19
19
  end
20
20
  end
21
- end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matthuhiggins-foreigner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Higgins