Ensure For@reversed is a boolean

This commit is contained in:
Justin Li
2015-05-28 16:09:26 -04:00
parent 3264d60425
commit 05a0fe56c8
+1 -1
View File
@@ -141,7 +141,7 @@ module Liquid
if markup =~ Syntax
@variable_name = $1
collection_name = $2
@reversed = $3
@reversed = !!$3
@name = "#{@variable_name}-#{collection_name}"
@collection_name = Expression.parse(collection_name)
markup.scan(TagAttributes) do |key, value|