forked from JangoSteve/remotipart
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1182e4
commit 2647ce9
Showing
2 changed files
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
module Remotipart | ||
module ViewHelper | ||
#No longer used | ||
#Retrained to prevent issues while updating | ||
def remotipart_response(options = {}, &block) | ||
content = with_output_buffer(&block) | ||
if remotipart_submitted? | ||
#Add the data-type option to the text area | ||
options = {:'data-type' => response.content_type}.merge(options) | ||
response.content_type = Mime::HTML | ||
text_area_tag('remotipart_response', String.new(content), options) | ||
else | ||
content | ||
end | ||
with_output_buffer(&block) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters