Fix map filter on Hash inputs

This commit is contained in:
Florian Weingarten
2013-10-08 08:18:03 -04:00
parent 81d3733f57
commit 96b30a89a9
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ module Liquid
def flatten_if_necessary(input)
ary = if input.is_a?(Array)
input.flatten
elsif input.kind_of?(Enumerable)
elsif input.is_a?(Enumerable) && !input.is_a?(Hash)
input
else
[input].flatten