Module: RenderHooks

Extended by:
ActiveSupport::Concern
Defined in:
lib/rails/render_hooks.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#render_with_render_hooks(*options, &block) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rails/render_hooks.rb', line 13

def render_with_render_hooks(*options, &block)
  if ActiveSupport::VERSION::STRING >= '4.0.0'
    run_callbacks(:process_render) do
      render_without_render_hooks(*options, &block)
    end
  else
    run_callbacks(:process_render, action_name) do
      render_without_render_hooks(*options, &block)
    end
  end
end