mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-17 01:40:42 -07:00
render! will properly force rethrow of errors if context is passed as an argument
This commit is contained in:
@@ -15,6 +15,8 @@ module Liquid
|
||||
class Context
|
||||
attr_reader :scopes, :errors, :registers, :environments, :resource_limits
|
||||
|
||||
attr_accessor :rethrow_errors
|
||||
|
||||
def initialize(environments = {}, outer_scope = {}, registers = {}, rethrow_errors = false, resource_limits = {})
|
||||
@environments = [environments].flatten
|
||||
@scopes = [(outer_scope || {})]
|
||||
|
||||
Reference in New Issue
Block a user