We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc6cce5 commit 5aa11cfCopy full SHA for 5aa11cf
lib/view_component/cacheable.rb
@@ -36,7 +36,7 @@ def retrieve_cache_key(key)
36
when key.respond_to?(:cache_key_with_version) then key.cache_key_with_version
37
when key.respond_to?(:cache_key) then key.cache_key
38
when key.is_a?(Array) then key.map { |element| retrieve_cache_key(element) }.to_param
39
- when key.respond_to?(:to_a) then retrieve_cache_key(key.to_a)
+ when key.respond_to?(:to_a) then retrieve_cache_key(key.to_a)
40
else key.to_param
41
end.to_s
42
end
0 commit comments