Shuffle logic around.

This commit is contained in:
Tristan Hume
2013-07-30 16:17:03 -04:00
parent 84f0c1bef8
commit c5afdc529a
2 changed files with 8 additions and 3 deletions
+1 -3
View File
@@ -28,9 +28,7 @@ module Liquid
# fetch the tag from registered blocks
if tag = Template.tags[$1]
new_tag = tag.allocate
new_tag.options = @options || {}
new_tag.send(:initialize, $1, $2, tokens)
new_tag = tag.new_with_options($1, $2, tokens, @options || {})
@blank &&= new_tag.blank?
@nodelist << new_tag
else