active_record_shards 4.0.0.beta3 → 4.0.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_record_shards/model.rb +9 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2de0f94bb1444db60049ab7f90c2f984cd3d45ab
|
4
|
+
data.tar.gz: 9bb7fb07f9299ef507306ce8ed589a26b1535df5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cd39f4712671a92461b1e6840146fd67e01051e7adc0597d8a0065008c4522b99769d06b0e828ca2b36098013403be3aaa0d041ff53100decc133fd38673a6a
|
7
|
+
data.tar.gz: d668ee2c261bfda7b0461696899a2cc3d5a680f141988c633f1b9dff802db68c5d602037fc50cd66829e6eba3b6052aa5e7a0c2de181aa67c497f4860f7697fa
|
@@ -3,10 +3,15 @@
|
|
3
3
|
module ActiveRecordShards
|
4
4
|
module Model
|
5
5
|
def not_sharded
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
message = "Calling not_sharded is deprecated. "\
|
7
|
+
"Please ensure to still read from the "\
|
8
|
+
"account db slave after removing the "\
|
9
|
+
"call."
|
10
|
+
if ActiveRecord::Base.logger
|
11
|
+
ActiveRecord::Base.logger.warn(message)
|
12
|
+
else
|
13
|
+
Kernel.warn(message)
|
14
|
+
end
|
10
15
|
end
|
11
16
|
|
12
17
|
def is_sharded? # rubocop:disable Naming/PredicateName
|