lib/remnant/template.rb in remnant-0.9.5 vs lib/remnant/template.rb in remnant-1.0.0
- old
+ new
@@ -17,14 +17,14 @@
def record(template)
return yield unless Remnant::Template.enabled?
trace.start(template)
begin
- result = yield
+ @result = yield
ensure
trace.finished(template)
end
- return result
+ return @result
end
def reset
Thread.current['remnant.template.trace'] = Remnant::Template::Trace.new
end