diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-19 11:54:12 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-19 11:54:12 +0200 |
commit | a66c91723565d37969de4cb46baa50fb8865b02a (patch) | |
tree | 7eb51d421970713ec0a0d85bbd4474c8bd75f19b /actionpack/lib/abstract_controller/rendering.rb | |
parent | 6380f1a9f45e68f38480c0805cac62eb6708f72e (diff) | |
download | rails-a66c91723565d37969de4cb46baa50fb8865b02a.tar.gz rails-a66c91723565d37969de4cb46baa50fb8865b02a.tar.bz2 rails-a66c91723565d37969de4cb46baa50fb8865b02a.zip |
Do not inherit from Rack::Response, remove a shit-ton of unused code.
Diffstat (limited to 'actionpack/lib/abstract_controller/rendering.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/rendering.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb index d0dd730b06..306bd41e2d 100644 --- a/actionpack/lib/abstract_controller/rendering.rb +++ b/actionpack/lib/abstract_controller/rendering.rb @@ -114,13 +114,7 @@ module AbstractController # :api: plugin def render_to_string(*args, &block) options = _normalize_render(*args, &block) - if self.response_body = render_to_body(options) - string = "" - response_body.each { |r| string << r } - string - end - ensure - self.response_body = nil + render_to_body(options) end # Raw rendering of a template to a Rack-compatible body. |