mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 07:05:12 -07:00
Fix regression on map
This commit is contained in:
@@ -310,7 +310,11 @@ module Liquid
|
|||||||
|
|
||||||
def initialize(input)
|
def initialize(input)
|
||||||
@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
|
input
|
||||||
else
|
else
|
||||||
Array(input)
|
Array(input)
|
||||||
|
|||||||
Reference in New Issue
Block a user