lib/tracebin/patches/action_view_layout.rb in tracebin-0.0.9 vs lib/tracebin/patches/action_view_layout.rb in tracebin-0.0.10

- old
+ new

@@ -12,22 +12,26 @@ end end if layout start_time = Time.now - render_with_layout_without_tracebin(path, locals, *args, &block) - end_time = Time.new + result = render_with_layout_without_tracebin(path, locals, *args, &block) + + end_time = Time.now + event_data = [ 'render_layout.action_view', start_time, end_time, { identifier: layout.identifier } ] ::Tracebin::Patches.handle_event :action_view_layout, event_data + + result else render_with_layout_without_tracebin(path, locals, *args, &block) end end end