ar_lazy_preload 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3b1c23e853fd6612e6d7f4f063e4cac5577c591a9a3b7be3b04c4a6801d1291
|
4
|
+
data.tar.gz: 66a30a3b81d996ebbb9324dfedf4f874498da1b202f66dcab17385fc8596bde3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fae1e071f6f199d8a881a2bf0a60a4b5d53e1467428d07e39d67d98539a20a9b8b319ac4aac7ba73675367c648db441a7eb24bcf1f252c0becddd7905150d9c
|
7
|
+
data.tar.gz: 7c5107b91f3671cc4fa16ae38af7a8b54832c31afc10e337c76eb3b4f24440eff87d5202577bbbcef38628f3266af057966a4120097c8cf887524a8c8ce03ba3
|
@@ -9,8 +9,8 @@ module ArLazyPreload
|
|
9
9
|
setup_preloading_context unless ArLazyPreload.config.auto_preload?
|
10
10
|
end
|
11
11
|
|
12
|
-
delegate :owner, :reflection, to: :proxy_association
|
13
|
-
delegate :lazy_preload_context, to: :
|
12
|
+
delegate :owner, :reflection, to: :proxy_association, prefix: true
|
13
|
+
delegate :lazy_preload_context, to: :proxy_association_owner
|
14
14
|
|
15
15
|
private
|
16
16
|
|
@@ -19,7 +19,7 @@ module ArLazyPreload
|
|
19
19
|
return if lazy_preload_context.association_tree.nil?
|
20
20
|
|
21
21
|
association_tree_builder = AssociationTreeBuilder.new(lazy_preload_context.association_tree)
|
22
|
-
subtree = association_tree_builder.subtree_for(
|
22
|
+
subtree = association_tree_builder.subtree_for(proxy_association_reflection.name)
|
23
23
|
|
24
24
|
lazy_preload!(subtree)
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ar_lazy_preload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DmitryTsepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|