active_record_shards 4.0.0.beta5 → 4.0.0.beta6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a5e26f845c2b9628ad246c6afafc466be8d00c8
|
4
|
+
data.tar.gz: ccffb2df58a242e590c6f5940a30814572eaf742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96333291c802edcfd68cf8bb989252bfed8b08e72c8afca8bf8d09098b7053b18ec58472df76f1cf48cc05a624570ab4996e350440d42c0908f5bb5b86c08e56
|
7
|
+
data.tar.gz: ac5e5f9820f2d91d8eb726312a60e509e9d000dd72d5f04e19ff7cc6956352ec9aa8643ff244385ba48332dbe44eb5e4dd672d5594dfb25382ebbe304ad2ffdd
|
@@ -64,6 +64,10 @@ module ActiveRecordShards
|
|
64
64
|
current_shard_selection.shard
|
65
65
|
end
|
66
66
|
|
67
|
+
def on_shard?
|
68
|
+
current_shard_selection.on_shard?
|
69
|
+
end
|
70
|
+
|
67
71
|
def shard_names
|
68
72
|
unless config = configurations[shard_env]
|
69
73
|
raise "Did not find #{shard_env} in configurations, did you forget to add it to your database config? (configurations: #{configurations.inspect})"
|