Sha256: bd84768d5ebdc1a2a0b6f8c7a7796eff38385a47a685ff509a4cf34948c6b8de
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 Bytes
Contents
::ActionView::TemplateRenderer.class_eval do alias_method :render_with_layout_without_tracebin, :render_with_layout def render_with_layout(path, locals, *args, &block) layout = nil if path if method(:find_layout).arity == 3 layout = find_layout(path, locals.keys, [formats.first]) else layout = find_layout(path, locals.keys) end end if layout start_time = Time.now 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tracebin-0.0.10 | lib/tracebin/patches/action_view_layout.rb |