matthuhiggins-foreigner 0.3.0 → 0.3.1

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.
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