diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-02 13:32:58 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-02 21:32:50 -0700 |
commit | 0bdb7d353b4ac6f5470884360f9a480a16bd709c (patch) | |
tree | 53d266015cf696c280b9ba37995c9d1f6bd02358 /actionpack/lib/action_view/template_handlers/builder.rb | |
parent | 933697a5fc5f4c56c4fd7fbbd31b8973df9c1054 (diff) | |
download | rails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.tar.gz rails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.tar.bz2 rails-0bdb7d353b4ac6f5470884360f9a480a16bd709c.zip |
Work with @output_buffer instead of _erbout
Diffstat (limited to 'actionpack/lib/action_view/template_handlers/builder.rb')
-rw-r--r-- | actionpack/lib/action_view/template_handlers/builder.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/template_handlers/builder.rb b/actionpack/lib/action_view/template_handlers/builder.rb index f76d89777a..ee02ce1a6f 100644 --- a/actionpack/lib/action_view/template_handlers/builder.rb +++ b/actionpack/lib/action_view/template_handlers/builder.rb @@ -11,10 +11,11 @@ module ActionView def compile(template) content_type_handler = (@view.send!(:controller).respond_to?(:response) ? "controller.response" : "controller") + "#{content_type_handler}.content_type ||= Mime::XML\n" + - "xml = ::Builder::XmlMarkup.new(:indent => 2)\n" + - template.source + - "\nxml.target!\n" + "xml = ::Builder::XmlMarkup.new(:indent => 2)\n" + + template.source + + "\nxml.target!\n" end def cache_fragment(block, name = {}, options = nil) |