Fix regression on map

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