Skip to content

Commit 143a181

Browse files
committed
Fixed section of Hash bug
Currently crystal adds new module Indexable and Hash is Enumerable, so Hash#each called in old implementation. It causes this bug.
1 parent 0c5041e commit 143a181

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/crustache/renderer.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Crustache::Renderer(T)
2020
def section(s)
2121
if value = @context.lookup s.value
2222
case
23-
when value.is_a?(Enumerable)
23+
when value.is_a?(Indexable)
2424
value.each do |ctx|
2525
scope ctx do
2626
s.content.each &.visit(self)

0 commit comments

Comments
 (0)