context: fix original context not being restored
This commit is contained in:
parent
d31150adf3
commit
e81e811d56
@ -63,7 +63,7 @@ module Context
|
||||
end
|
||||
|
||||
def with_context(**options)
|
||||
old_context = Thread.current[:context]
|
||||
old_context = Context.current
|
||||
|
||||
new_context = ContextStruct.new(
|
||||
debug: options.fetch(:debug, old_context&.debug?),
|
||||
|
Loading…
x
Reference in New Issue
Block a user