Module: Remotipart::RenderOverrides

Includes:
ActionView::Helpers::JavaScriptHelper, ERB::Util
Defined in:
lib/remotipart/render_overrides.rb

Overview

Responder used to automagically wrap any non-xml replies in a text-area as expected by iframe-transport.

Defined Under Namespace

Modules: Includable, Prependable

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/remotipart/render_overrides.rb', line 8

def self.included(base)
  base.class_eval do
    if respond_to? :prepend
      base.prepend Prependable
    else
      base.include Includable
      # Do not use alias_method_chain for compatibility
      alias render_without_remotipart render
      alias render render_with_remotipart
    end
  end
end