mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Fix regression on map
This commit is contained in:
@@ -309,8 +309,12 @@ module Liquid
|
|||||||
include Enumerable
|
include Enumerable
|
||||||
|
|
||||||
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