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: e6c3cba2d388ad0dac874cc3afcb6b72400e059c
4
- data.tar.gz: 0cccf4b90cafbbec5ff3e8cecf07fda96637c779
3
+ metadata.gz: b40589b2796070b5a55edbfaa06e7ee2dcd05478
4
+ data.tar.gz: e33d1ff82c83ff078eec77c931ce42c89717d6d9
5
5
  SHA512:
6
- metadata.gz: c2090842b65f0f0b3e27ef16b8b048afd5bf909485d3e89bf7c9a9877bd2474825f589ffc07999aecc3c17b02958e3ca817cd18b21065c99ed500191943b969a
7
- data.tar.gz: 86cded89d28fdfee080ea9167a773a5c263960b732ca2c5216b58877d4f18f8eb2d0f51598471260de35bf3e40f1e9d0e8bed8372d009730f4d8ccbca965512a
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
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.11.3"
2
+ VERSION = "1.11.4"
3
3
  end
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.3
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-21 00:00:00.000000000 Z
13
+ date: 2017-09-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties