aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-04-20 21:44:08 +0000
committerRick Olson <technoweenie@gmail.com>2007-04-20 21:44:08 +0000
commiteb7a3045e3035d7de35a43297a4f36255e4f178d (patch)
tree4a159ec1ea9b7cc6af31b755e7d91d071fbd7463 /actionpack/lib/action_view
parentc87d242bf7b0f75800926c3a8cf23bb43667c9dd (diff)
downloadrails-eb7a3045e3035d7de35a43297a4f36255e4f178d.tar.gz
rails-eb7a3045e3035d7de35a43297a4f36255e4f178d.tar.bz2
rails-eb7a3045e3035d7de35a43297a4f36255e4f178d.zip
apply [6543] to edge. Closes #5044 [tpope]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6545 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/base.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 5ae3e7ba11..519872ee85 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -526,7 +526,8 @@ module ActionView #:nodoc:
when :rxml, :builder
"controller.response.content_type ||= Mime::XML\n" +
"xml = Builder::XmlMarkup.new(:indent => 2)\n" +
- template
+ template +
+ "\nxml.target!\n"
when :rjs
"controller.response.content_type ||= Mime::JS\n" +
"update_page do |page|\n#{template}\nend"