rails_multisite 2.0.1 → 2.0.2
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 +4 -4
- data/lib/rails_multisite/connection_management.rb +2 -1
- data/lib/rails_multisite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8c3c0c997af59b717db0143426fa1d83a1e3667
|
4
|
+
data.tar.gz: 39377b57e2174a1597cc1d76d698df08146685be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59cb5dc3fb75debd53519af72889a8d2377a3154a831ec6dab843d83a0e0a54e04fe403375d7047885d2b93a9826ca29ea0bad5863454360c38682d96a460c27
|
7
|
+
data.tar.gz: 4ca6cbf4973bc65f2806c6b48f9eb6c781db2f80e9857cb888d30751b2d8d7da0fa16bdaa50b665c51b3f236b05f162093ce542a11513ad4fc7ba911bcc8903f
|
@@ -60,8 +60,9 @@ module RailsMultisite
|
|
60
60
|
@instance.with_connection(db, &blk)
|
61
61
|
else
|
62
62
|
connected = ActiveRecord::Base.connection_pool.connected?
|
63
|
-
blk.call db
|
63
|
+
result = blk.call db
|
64
64
|
ActiveRecord::Base.clear_active_connections! unless connected
|
65
|
+
result
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
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: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|