active_record_shards 3.3.7 → 3.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record_shards/model.rb +5 -1
- data/lib/active_record_shards/tasks.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: 980b70eaf5ffddcd5bf9cd6a5eb4b273d4cf44b2
|
4
|
+
data.tar.gz: bbd7dad9a93782e167c8b57b9e181f553e026e74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c95e6b73354dbc310dfca4310c5573e207013a8a834eed811f5c14e69c65ed59a1c51334f6f9e04b3a598d690c1f7c0084ba57524e459c6d67527d726048b13
|
7
|
+
data.tar.gz: 411529c94179ce6dafeca4bda7fae80cd9d1731bfa47ac35e870dd4a911d051b7d6fe40ccb7a69bc3d3e009a0d47aa2ab808b531878b850c28b4046e8137f66d
|
@@ -11,7 +11,11 @@ module ActiveRecordShards
|
|
11
11
|
if self == ActiveRecord::Base
|
12
12
|
supports_sharding?
|
13
13
|
elsif self == base_class
|
14
|
-
@sharded
|
14
|
+
if @sharded.nil?
|
15
|
+
ActiveRecord::Base.is_sharded?
|
16
|
+
else
|
17
|
+
@sharded != false
|
18
|
+
end
|
15
19
|
else
|
16
20
|
base_class.is_sharded?
|
17
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_shards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|