diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-17 16:23:11 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-17 16:23:11 -0700 |
commit | 55ee0ba7f5b6b5d2023eb5dcc030946ed589fe53 (patch) | |
tree | feb3f10381724dd41389b604d51dc42080098a60 /actionpack/lib/action_view/template/handlers/builder.rb | |
parent | 8fdf3d7890d2e58508e028c93d3797f21a774dbc (diff) | |
download | rails-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.rb | 3 |
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!;" |