dwilkie-foreigner 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/foreigner.rb +2 -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(SQLite).include?
|
18
|
-
require "foreigner/connection_adapters/#{
|
17
|
+
if %w(SQLite).include? connection_pool.spec.config[:adapter].downcase
|
18
|
+
require "foreigner/connection_adapters/#{connection_pool.spec.config[:adapter].downcase}_adapter"
|
19
19
|
end
|
20
20
|
if %w(mysql postgresql).include? connection_pool.spec.config[:adapter].downcase
|
21
21
|
require "foreigner/connection_adapters/#{connection_pool.spec.config[:adapter].downcase}_adapter"
|