miscellany 0.1.28 → 0.1.30
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 +4 -4
- data/lib/miscellany/active_record/arbitrary_prefetch.rb +6 -1
- data/lib/miscellany/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72845736f45daa922b30d36b4adb18b1fc36b0e568f3b2d59c9c7c3194c18e28
|
4
|
+
data.tar.gz: d4e402081459c3691240d47df56bd2c3ee82ea7fa9b543f058c2540c63b24408
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '07283382e3066d8ae5e787226b3f4f4b424fd1a9069aefab6da9afe075f5ab5870794294d11bb7ccd7770d4168a3f57a59316b90441cea8e9854023799bfb6bc'
|
7
|
+
data.tar.gz: a2ee658dbd4fe63aa454fd3adfa5392c5447b2e0da04cf258230cfe2433958e06288f2db28d75d7ad3c24ffb75272f328ba86d8673b5b6f693e09ecf9f353635
|
@@ -104,7 +104,7 @@ module Miscellany
|
|
104
104
|
def add_prefetches!(kwargs)
|
105
105
|
return unless kwargs.present?
|
106
106
|
|
107
|
-
if Rails.
|
107
|
+
if Rails.version < "7.2"
|
108
108
|
assert_mutability!
|
109
109
|
else
|
110
110
|
assert_modifiable!
|
@@ -233,6 +233,11 @@ module Miscellany
|
|
233
233
|
def self.install
|
234
234
|
apply_patches(ActiveRecordPatches, ::ActiveRecord)
|
235
235
|
|
236
|
+
begin
|
237
|
+
require "goldiloader"
|
238
|
+
rescue LoadError
|
239
|
+
end
|
240
|
+
|
236
241
|
return unless defined? ::Goldiloader
|
237
242
|
|
238
243
|
::Goldiloader::AssociationLoader.module_eval do
|
data/lib/miscellany/version.rb
CHANGED