Fix regression on map

This commit is contained in:
Arthur Neves
2014-07-23 17:16:21 -04:00
parent 18e8ce1eb0
commit b7b243a13d
+5 -1
View File
@@ -310,7 +310,11 @@ module Liquid
def initialize(input)
@input =
if input.kind_of?(Enumerable)
if input.is_a?(Array)
input.flatten
elsif input.is_a?(Hash)
[input]
elsif input.is_a?(Enumerable)
input
else
Array(input)