rails_multisite 1.1.0.rc3 → 1.1.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails_multisite might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c34ae44ef4463a47d823ba8d59e9c5b6c3257e9
|
4
|
+
data.tar.gz: 3c1acedaacdeea8bb38f46a56db82b81781f1891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0565a6ce2976d30d7b8193571aecb024c6640bc0f8fd4f417bbd210d1dcbe325017753e96b94d4b8a2b43ecf8d10824dc11ac487bca9f4ec1fe4fe67b91788d7
|
7
|
+
data.tar.gz: b3eba6b046b05dcd8c104e7d5cdbb21af5c3df6348eb987aa20eee9af03df48a20dbd7d345d26100a93b6cb6f7af13f761309e850cd3ef48d8921c4c14807725
|
@@ -147,7 +147,12 @@ module RailsMultisite
|
|
147
147
|
end
|
148
148
|
end
|
149
149
|
|
150
|
+
def self.set_current_db
|
151
|
+
@@current_db = DEFAULT
|
152
|
+
end
|
153
|
+
|
150
154
|
def self.current_db
|
155
|
+
return @@current_db if defined?(@@current_db)
|
151
156
|
ActiveRecord::Base.connection_pool.spec.config[:db_key] || DEFAULT
|
152
157
|
end
|
153
158
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_multisite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|