Sha256: b5add211157d4a76e356fb4d206fc495b8ec6afa7c87d6a6a62b1474c250898f
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
module Remotipart #Responder used to automagically wrap any non-xml replies in a text-area # as expected by iframe-transport module RenderOverrides def render *args super if remotipart_submitted? response.body = %{<textarea data-type=\"#{content_type}\" response-code=\"#{response.response_code}\">#{response.body}</textarea>} response.content_type = Mime::HTML end response_body end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remotipart-1.0.1 | lib/remotipart/render_overrides.rb |