mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
Fix array handling shortcut in disable_tags
This commit is contained in:
@@ -169,7 +169,7 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def disable_tags(context, tags, &block)
|
def disable_tags(context, tags, &block)
|
||||||
return yield unless tags
|
return yield if tags.empty?
|
||||||
context.registers['disabled_tags'].disable(tags, &block)
|
context.registers['disabled_tags'].disable(tags, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user