aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-18 17:32:53 -0700
committerCarlhuda <carlhuda@engineyard.com>2010-03-18 17:32:53 -0700
commit1dacc19702f88a18a57615d1a5eeab3d0f5f9007 (patch)
tree1ba168d616d1a6fd4086919d59cb2266a1667dd7 /actionpack/lib/abstract_controller
parentedb5991a14e0dfb65d2b8802d61b44fc47004921 (diff)
downloadrails-1dacc19702f88a18a57615d1a5eeab3d0f5f9007.tar.gz
rails-1dacc19702f88a18a57615d1a5eeab3d0f5f9007.tar.bz2
rails-1dacc19702f88a18a57615d1a5eeab3d0f5f9007.zip
Return a valid Rack response from bare ActionController::Metal
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index eec7e520fa..402ad7c8d7 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -76,7 +76,7 @@ module AbstractController
# :api: plugin
def render_to_string(options={})
_normalize_options(options)
- AbstractController::Rendering.body_to_s(render_to_body(options))
+ render_to_body(options)
end
# Find and renders a template based on the options given.
@@ -90,18 +90,6 @@ module AbstractController
controller_path
end
- # Return a string representation of a Rack-compatible response body.
- def self.body_to_s(body)
- if body.respond_to?(:to_str)
- body
- else
- strings = []
- body.each { |part| strings << part.to_s }
- body.close if body.respond_to?(:close)
- strings.join
- end
- end
-
private
# This method should return a hash with assigns.