diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-10 19:49:10 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-10 19:49:10 +0200 |
commit | 51590ad1756183f84a3df4790d0b07bcf1e74ed4 (patch) | |
tree | d4fa19c6a212614d5ca0bbe1705288654f6aa6e1 /actionpack | |
parent | b67ec8ba20099c8b39bf344f385bbbd2b9c8f47d (diff) | |
download | rails-51590ad1756183f84a3df4790d0b07bcf1e74ed4.tar.gz rails-51590ad1756183f84a3df4790d0b07bcf1e74ed4.tar.bz2 rails-51590ad1756183f84a3df4790d0b07bcf1e74ed4.zip |
Remove punctuate_body! No code in lib was using it and it had no documentation.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 6 | ||||
-rw-r--r-- | actionpack/test/template/body_parts_test.rb | 25 |
2 files changed, 0 insertions, 31 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 2efc575081..5fa1b5619b 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -225,12 +225,6 @@ module ActionView #:nodoc: @controller_path ||= controller && controller.controller_path end - def punctuate_body!(part) - flush_output_buffer - response.body_parts << part - nil - end - ActiveSupport.run_load_hooks(:action_view, self) end end diff --git a/actionpack/test/template/body_parts_test.rb b/actionpack/test/template/body_parts_test.rb deleted file mode 100644 index 69cf684083..0000000000 --- a/actionpack/test/template/body_parts_test.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'abstract_unit' - -class BodyPartsTest < ActionController::TestCase - RENDERINGS = [Object.new, Object.new, Object.new] - - class TestController < ActionController::Base - def response_body() "" end - - def index - RENDERINGS.each do |rendering| - view_context.punctuate_body! rendering - end - end - end - - tests TestController - - def test_body_parts - get :index - # TestProcess buffers body_parts into body - # TODO: Rewrite test w/o going through process - assert_equal RENDERINGS, @response.body_parts - assert_equal RENDERINGS.join, @response.body - end -end |