mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
Use Liquid::Utils.to_s in join filter
This commit is contained in:
@@ -1063,7 +1063,18 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def join(glue)
|
def join(glue)
|
||||||
to_a.join(glue.to_s)
|
first = true
|
||||||
|
output = +""
|
||||||
|
@input.each do |item|
|
||||||
|
if first
|
||||||
|
first = false
|
||||||
|
else
|
||||||
|
output << glue
|
||||||
|
end
|
||||||
|
|
||||||
|
output << Liquid::Utils.to_s(item)
|
||||||
|
end
|
||||||
|
output
|
||||||
end
|
end
|
||||||
|
|
||||||
def concat(args)
|
def concat(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user