multi_fetch_fragments 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/multi_fetch_fragments.rb +5 -3
- metadata +1 -1
@@ -27,13 +27,15 @@ module MultiFetchFragments
|
|
27
27
|
@collection.each do |item|
|
28
28
|
key = @options[:cache].is_a?(Proc) ? @options[:cache].call(item) : item
|
29
29
|
|
30
|
-
|
30
|
+
key_with_optional_digest = nil
|
31
31
|
if defined?(@view.fragment_name_with_digest)
|
32
|
-
|
32
|
+
key_with_optional_digest = @view.fragment_name_with_digest(key)
|
33
33
|
else
|
34
|
-
|
34
|
+
key_with_optional_digest = key
|
35
35
|
end
|
36
36
|
|
37
|
+
expanded_key = @view.controller.fragment_cache_key(key_with_optional_digest)
|
38
|
+
|
37
39
|
keys_to_collection_map[expanded_key] = item
|
38
40
|
end
|
39
41
|
|