matthuhiggins-foreigner 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/foreigner.rb +3 -2
- metadata +4 -4
data/lib/foreigner.rb
CHANGED
@@ -19,7 +19,7 @@ module Foreigner
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def configured_adapter
|
22
|
-
ActiveRecord::Base.
|
22
|
+
ActiveRecord::Base.connection_pool.spec.config[:adapter]
|
23
23
|
end
|
24
24
|
|
25
25
|
def on_load(&block)
|
@@ -39,6 +39,7 @@ module Foreigner
|
|
39
39
|
end
|
40
40
|
|
41
41
|
Foreigner.register 'mysql', 'foreigner/connection_adapters/mysql_adapter'
|
42
|
+
Foreigner.register 'mysql2', 'foreigner/connection_adapters/mysql_adapter'
|
42
43
|
Foreigner.register 'postgresql', 'foreigner/connection_adapters/postgresql_adapter'
|
43
44
|
|
44
45
|
Foreigner.on_load do
|
@@ -53,5 +54,5 @@ Foreigner.on_load do
|
|
53
54
|
end
|
54
55
|
end
|
55
56
|
|
56
|
-
Foreigner.load_adapter!
|
57
|
+
Foreigner.load_adapter!
|
57
58
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matthuhiggins-foreigner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthew Higgins
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-21 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|