active_record_shards 2.4.4 → 2.4.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -103,6 +103,10 @@ module ActiveRecordShards
|
|
103
103
|
Thread.current[:shard_selection] ||= ShardSelection.new
|
104
104
|
end
|
105
105
|
|
106
|
+
def current_shard_id
|
107
|
+
current_shard_selection.shard
|
108
|
+
end
|
109
|
+
|
106
110
|
def shard_names
|
107
111
|
configurations[shard_env]['shard_names'] || []
|
108
112
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_shards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 2.4.
|
9
|
+
- 5
|
10
|
+
version: 2.4.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mick Staugaard
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
20
|
+
date: 2011-10-07 00:00:00 -07:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|