switchman 1.11.3 → 1.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b40589b2796070b5a55edbfaa06e7ee2dcd05478
|
4
|
+
data.tar.gz: e33d1ff82c83ff078eec77c931ce42c89717d6d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63bba2a4886b48a1d3946b0a3d5151d1d757e319d6fd57dc7c62d81e93d111ea039ffc0d8822a75ce8d0b9f34878b5bb78b4fae830d5a9c2062768bca2c3c6ce
|
7
|
+
data.tar.gz: a4182eae2a0514579a70bcab1a55d566265d1b5bc6a14e1b9f08b0dc71c82b52110beb7b1b41c5236e87f9da5dd16a629b0f08d0d4d08f2ed45e58d8d96a6ac5
|
@@ -13,12 +13,6 @@ module Switchman
|
|
13
13
|
self.shard.activate { super }
|
14
14
|
end
|
15
15
|
|
16
|
-
def association_scope
|
17
|
-
if klass
|
18
|
-
shard.activate(klass.shard_category) { super }
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
16
|
def scope
|
23
17
|
shard_value = @reflection.options[:multishard] ? @owner : self.shard
|
24
18
|
@owner.shard.activate { super.shard(shard_value, :association) }
|
@@ -236,8 +236,6 @@ module Switchman
|
|
236
236
|
current_source_shard =
|
237
237
|
if source_shard
|
238
238
|
source_shard
|
239
|
-
elsif shard_source_value == :explicit && !shard_value.is_a?(Array) && !shard_value.is_a?(::ActiveRecord::Relation)
|
240
|
-
primary_shard
|
241
239
|
elsif type == :primary
|
242
240
|
Shard.current(klass.shard_category)
|
243
241
|
elsif type == :foreign
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-09-
|
13
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|