Sha256: f5caa1341fa791b252f6ffe6a9d59bab356fffc6d533cdf8f8d9322f993400c6
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 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 render_with_layout_without_tracebin(path, locals, *args, &block) end_time = Time.new event_data = [ 'render_layout.action_view', start_time, end_time, { identifier: layout.identifier } ] ::Vizsla::Patches.handle_event :action_view_layout, event_data 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.7 | lib/vizsla/patches/action_view_layout.rb |