diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-04-20 21:44:08 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-04-20 21:44:08 +0000 |
commit | eb7a3045e3035d7de35a43297a4f36255e4f178d (patch) | |
tree | 4a159ec1ea9b7cc6af31b755e7d91d071fbd7463 /actionpack/lib/action_view/base.rb | |
parent | c87d242bf7b0f75800926c3a8cf23bb43667c9dd (diff) | |
download | rails-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/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 3 |
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" |