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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3dd1f6575dd2eaaedc3e5a4d3ef0e98304f10d79
4
- data.tar.gz: bb22ffa4ce2dcdfd66cb83e1b71e8e0c5f13dec3
3
+ metadata.gz: ff7baa3b7d571eb6b9d1b35814e479ecc4d814e2
4
+ data.tar.gz: 5ef6529debb63f8c4bbb98db230540f11f3bbfcb
5
5
  SHA512:
6
- metadata.gz: f76198b525fd4ae85a8a02abcc15b258a0ec07c2343104ba73de4637657930c0361e08cd2371757ecbba5079c8a167b1891e03961e0f80f7dbe598862e6d98c1
7
- data.tar.gz: 3c243ce923c72ea30128ab6f474d2672233541ae1f079510a7852917b7cd5050b5485b5be98ef04c92f680d7c8134fba2ac0215960ceb8cad4ab28b5df49dcca
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
@@ -1,3 +1,3 @@
1
1
  module Switchman
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
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.4.0
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-28 00:00:00.000000000 Z
13
+ date: 2016-01-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties