aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/handlers/builder.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-17 16:23:11 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-17 16:23:11 -0700
commit55ee0ba7f5b6b5d2023eb5dcc030946ed589fe53 (patch)
treefeb3f10381724dd41389b604d51dc42080098a60 /actionpack/lib/action_view/template/handlers/builder.rb
parent8fdf3d7890d2e58508e028c93d3797f21a774dbc (diff)
downloadrails-55ee0ba7f5b6b5d2023eb5dcc030946ed589fe53.tar.gz
rails-55ee0ba7f5b6b5d2023eb5dcc030946ed589fe53.tar.bz2
rails-55ee0ba7f5b6b5d2023eb5dcc030946ed589fe53.zip
Cleaning up if defined?(ActionController::Http) blocks from the pre new base era.
Diffstat (limited to 'actionpack/lib/action_view/template/handlers/builder.rb')
-rw-r--r--actionpack/lib/action_view/template/handlers/builder.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/template/handlers/builder.rb b/actionpack/lib/action_view/template/handlers/builder.rb
index f412228752..abe140af0b 100644
--- a/actionpack/lib/action_view/template/handlers/builder.rb
+++ b/actionpack/lib/action_view/template/handlers/builder.rb
@@ -8,8 +8,7 @@ module ActionView
self.default_format = Mime::XML
def compile(template)
- "_set_controller_content_type(Mime::XML);" +
- "xml = ::Builder::XmlMarkup.new(:indent => 2);" +
+ "xml = ::Builder::XmlMarkup.new(:indent => 2);" +
"self.output_buffer = xml.target!;" +
template.source +
";xml.target!;"