Module: ActivePath::Helpers::RenderingHelper

Extended by:
ActionView::Helpers::RenderingHelper
Defined in:
lib/active_path/helpers/rendering_helper.rb

Instance Method Summary collapse

Instance Method Details

#render(options = {}, locals = {}, &block) ⇒ Object

Notify subscribers that a partial has rendered



6
7
8
9
10
11
# File 'lib/active_path/helpers/rendering_helper.rb', line 6

def render(options = {}, locals = {}, &block)
  buffer = super
  opts = { context: self, buffer: buffer, options: options, locals: locals }
  ActiveSupport::Notifications.instrument(:render_partial, opts)
  buffer
end