mirror of
https://github.com/kemko/liquid.git
synced 2026-01-04 17:25:41 +03:00
Fix regression on map
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user