Stash exception_renderer lambda in a constant

This commit is contained in:
Ashwin Maroli
2020-10-26 19:44:00 +05:30
parent 0e52706a5b
commit bfa2df7036
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -42,6 +42,8 @@ module Liquid
TemplateParser = /(#{PartialTemplateParser}|#{AnyStartingTag})/om
VariableParser = /\[[^\]]+\]|#{VariableSegment}+\??/o
EXCEPTION_RENDERER_LAMBDA = ->(_e) { raise }
singleton_class.send(:attr_accessor, :cache_classes)
self.cache_classes = true
end