Module: Remotipart::RenderOverrides

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) render(*args)



6
7
8
9
10
11
12
13
# File 'lib/remotipart/render_overrides.rb', line 6

def render *args
  super
  if 
    response.body = %{<textarea data-type=\"#{content_type}\" response-code=\"#{response.response_code}\">#{response.body}</textarea>}
    response.content_type = Mime::HTML
  end
  response_body
end