kaminari-core 1.3.1 → 1.3.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 +4 -4
- data/lib/kaminari/core/version.rb +1 -1
- data/lib/kaminari/helpers/tags.rb +3 -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: e3ba25bdbce77ecbf49478c11cad069537b01ee816123d3c98235cbd09be32f2
|
|
4
|
+
data.tar.gz: af6a7701bf0f2277b23a7bebcfaa4c98e7d776f896b0b7ddb5fb06bd749716a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14344e63e7e7fede1adb3d311a3875f4e2204e9ddecba815226ba07e4969806c3643e36c6ffb8a74af3420a5bea9b4d601fa7b06761c97ba46d0c4b0c5e08339
|
|
7
|
+
data.tar.gz: d0f2dabe79ac91dc8e40900d86ae4dd25a79ecc3dc83f92f26149c19b73a8aa237f8df611fd5320e559a003204a9a21fa111ccba32a4c6698b6e9e9960a4d4e1
|
|
@@ -65,7 +65,9 @@ module Kaminari
|
|
|
65
65
|
path, keys = partial_path, locals.keys
|
|
66
66
|
cached_keys, template = @partial_cache[path]
|
|
67
67
|
unless template && (cached_keys == keys)
|
|
68
|
-
|
|
68
|
+
lookup_context = @template.lookup_context
|
|
69
|
+
# LookupContext#find no longer raises MissingTemplate but returns nil since Rails 8.2, where find! raises instead
|
|
70
|
+
template = lookup_context.respond_to?(:find!) ? lookup_context.find!(path, [], true, keys) : lookup_context.find(path, [], true, keys)
|
|
69
71
|
@partial_cache[path] = [keys, template]
|
|
70
72
|
end
|
|
71
73
|
# `render partial:` in Action View 4 also puts the partial name into local_assigns (e.g. {gap: nil, ...})
|