kaminari-core 1.3.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d08a6963a92273028b03d21b148a1a7d4fb8f7033b315e1af492b54eaf9ba790
4
- data.tar.gz: 6aa9625e5db4476c1e76deaa7e548e9821dc19411ff09c753cbb9a16c146e81e
3
+ metadata.gz: e3ba25bdbce77ecbf49478c11cad069537b01ee816123d3c98235cbd09be32f2
4
+ data.tar.gz: af6a7701bf0f2277b23a7bebcfaa4c98e7d776f896b0b7ddb5fb06bd749716a2
5
5
  SHA512:
6
- metadata.gz: 497e6516b7f39d799c9c69a772c3985d1da0f4714e42f1d011686b273d178c534513b074de56d5c888e98ec4f70ca78718c211b918a2d584b5b0ef040b8f697d
7
- data.tar.gz: 32cce623d1212f46a77c41974ef225c93b152fcb7ed41de7f03e21c825c8b42b2e75ec1777afd0e0719ea9aa27c77238195a1ce2b16f8ee433fcc04b0cbc212c
6
+ metadata.gz: 14344e63e7e7fede1adb3d311a3875f4e2204e9ddecba815226ba07e4969806c3643e36c6ffb8a74af3420a5bea9b4d601fa7b06761c97ba46d0c4b0c5e08339
7
+ data.tar.gz: d0f2dabe79ac91dc8e40900d86ae4dd25a79ecc3dc83f92f26149c19b73a8aa237f8df611fd5320e559a003204a9a21fa111ccba32a4c6698b6e9e9960a4d4e1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kaminari
4
4
  module Core
5
- VERSION = '1.3.0'
5
+ VERSION = '1.3.2'
6
6
  end
7
7
  end
@@ -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
- template = @template.lookup_context.find_template(path, [], true, keys)
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, ...})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaminari-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda