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.
- data/lib/foreigner.rb +3 -3
- 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(
|
18
|
-
require "foreigner/connection_adapters/#{
|
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
|