multi_fetch_fragments icon indicating copy to clipboard operation
multi_fetch_fragments copied to clipboard

Fix custom cache key mechanism for shorthand syntax

Open shreve opened this issue 9 years ago • 0 comments

According to the docs, multi_fetch_fragments supports the shorthand syntax, render @items, cache: true. This is true for boolean values, but does not support custom cache keys via proc or lambda values. This is because the shorthand passes cache to @locals rather than @options, and the search for the callable object is limited to @options.

This commit adds @locals to that search.

shreve avatar Nov 04 '16 23:11 shreve