switchman 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/active_record/query_methods.rb +2 -0
- data/lib/switchman/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: ff7baa3b7d571eb6b9d1b35814e479ecc4d814e2
|
4
|
+
data.tar.gz: 5ef6529debb63f8c4bbb98db230540f11f3bbfcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a8eda4ddebc3768c5571a240a21377c3127ac4c89d7456887ac1c3ff71b8a9f7923aaf3856afa3af1ac1fa6d6d7cb852876867a654b9dee8e55a5ddf66c5f41
|
7
|
+
data.tar.gz: 88e17bdca8d4468c7b08366f54c4de28fa865203c02aa833e6db14efcfad88db42129bb71b5530930f6c7370081cf4ffc73833be9d38679e64bb2b9debfe228f
|
@@ -82,6 +82,8 @@ module Switchman
|
|
82
82
|
[shard_value]
|
83
83
|
when ::ActiveRecord::Base
|
84
84
|
shard_value.respond_to?(:associated_shards) ? shard_value.associated_shards : [shard_value.shard]
|
85
|
+
when nil
|
86
|
+
[Shard.current(klass.respond_to?(:shard_category) ? klass.shard_category : default)]
|
85
87
|
else
|
86
88
|
shard_value
|
87
89
|
end
|
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.4.
|
4
|
+
version: 1.4.1
|
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: 2016-01-
|
13
|
+
date: 2016-01-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|