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
+1 -1
View File
@@ -41,7 +41,7 @@ module Liquid
self.exception_renderer = Template.default_exception_renderer
if rethrow_errors
self.exception_renderer = ->(_e) { raise }
self.exception_renderer = Liquid::EXCEPTION_RENDERER_LAMBDA
end
# Do this last, since it could result in this object being passed to a Proc in the environment