active_record_shards 3.13.1 → 3.14.0
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/default_slave_patches.rb +0 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cefdc4fc943b46f49fe54cefae07891f3164d85ecd22a1122d505d89985c8f5
|
4
|
+
data.tar.gz: 12947cbb8fefa3b1913ee6e9eba6b2fd12512aae76cdc4eeedd869454bf1add1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff79d82557e8404dc27d14d4a119d8a0303ef4b79af88ae137cd9b18bef454620ee0c38fcde50989307ef08c98bc5a8bac27bc57d946483ad2f7db0ca6a5d757
|
7
|
+
data.tar.gz: 8776bee0e6ed8e67b0aa846138e0492def1edc09090e14d672b2e890671c58c4740bbbb7c67dd61f4f5aef6bf3b54325338ee309bb9fc80e2e442f76980e0ff0
|
@@ -56,10 +56,6 @@ module ActiveRecordShards
|
|
56
56
|
def quote_value(*args, &block)
|
57
57
|
self.class.quote_value(*args, &block)
|
58
58
|
end
|
59
|
-
|
60
|
-
def reload_with_slave_off(*args, &block)
|
61
|
-
self.class.on_master { reload_without_slave_off(*args, &block) }
|
62
|
-
end
|
63
59
|
end
|
64
60
|
|
65
61
|
CLASS_SLAVE_METHODS = [:find_by_sql, :count_by_sql, :calculate, :find_one, :find_some, :find_every, :exists?].freeze
|
@@ -70,9 +66,6 @@ module ActiveRecordShards
|
|
70
66
|
base.class_eval do
|
71
67
|
include InstanceMethods
|
72
68
|
|
73
|
-
alias_method :reload_without_slave_off, :reload
|
74
|
-
alias_method :reload, :reload_with_slave_off
|
75
|
-
|
76
69
|
class << self
|
77
70
|
alias_method :columns_without_force_slave, :columns
|
78
71
|
alias_method :columns, :columns_with_force_slave
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_shards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Quorning
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2019-
|
16
|
+
date: 2019-03-13 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activerecord
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.0.
|
221
|
+
rubygems_version: 3.0.3
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: Simple database switching for ActiveRecord.
|