Merge pull request #579 from Shopify/ast-match

Ensure For@reversed is a boolean
This commit is contained in:
Justin Li
2015-05-28 16:45:09 -04:00
+1 -1
View File
@@ -138,7 +138,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|