mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Array is a Enumerable
This commit is contained in:
@@ -305,7 +305,7 @@ module Liquid
|
|||||||
|
|
||||||
def initialize(input)
|
def initialize(input)
|
||||||
@input =
|
@input =
|
||||||
if input.is_a?(Array) || input.kind_of?(Enumerable)
|
if input.kind_of?(Enumerable)
|
||||||
input
|
input
|
||||||
else
|
else
|
||||||
Array(input)
|
Array(input)
|
||||||
|
|||||||
Reference in New Issue
Block a user