lib/oboe/frameworks/padrino/templates.rb in oboe-2.6.5.5 vs lib/oboe/frameworks/padrino/templates.rb in oboe-2.6.6.1
- old
+ new
@@ -7,10 +7,12 @@
def self.included(klass)
::Oboe::Util.method_alias(klass, :render, ::Padrino::Rendering)
end
def render_with_oboe(engine, data=nil, options={}, locals={}, &block)
- if Oboe.tracing?
+ unless Oboe.tracing?
+ render_without_oboe(engine, data, options, locals, &block)
+ else
report_kvs = {}
if data
report_kvs[:engine] = engine
report_kvs[:template] = data