Resolve disbale tag tests

This commit is contained in:
Mike Angell
2019-09-23 21:03:35 +10:00
parent 05234ef6de
commit fc4059c8dd
2 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -39,11 +39,11 @@ module Liquid
end
def disabled?(context)
context.registers['disabled_tags']&.disabled?(tag_name)
context.registers['disabled_tags']&.disabled?(tag_name)
end
def disabled_response
"#{tag_name} #{options[:locale].t("errors.disabled.tag")}"
"#{tag_name} #{options[:locale].t('errors.disabled.tag')}"
end
# For backwards compatibility with custom tags. In a future release, the semantics