aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base/render.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-04-22 00:22:07 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-04-22 00:22:07 -0700
commit70c544df71dbea561d6136ecb13bee43cda64bd1 (patch)
tree8151931e11948d25988f8cb935cd3a40d6ab99e7 /actionpack/lib/action_controller/base/render.rb
parentf49e3441280380ec810d54bd5a77a7e699415efb (diff)
downloadrails-70c544df71dbea561d6136ecb13bee43cda64bd1.tar.gz
rails-70c544df71dbea561d6136ecb13bee43cda64bd1.tar.bz2
rails-70c544df71dbea561d6136ecb13bee43cda64bd1.zip
Rack::Utils.body_to_s doesn't exist in 1.0
Diffstat (limited to 'actionpack/lib/action_controller/base/render.rb')
-rw-r--r--actionpack/lib/action_controller/base/render.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base/render.rb b/actionpack/lib/action_controller/base/render.rb
index 604dd31930..606df58518 100644
--- a/actionpack/lib/action_controller/base/render.rb
+++ b/actionpack/lib/action_controller/base/render.rb
@@ -1,3 +1,5 @@
+require 'action_controller/abstract/renderer'
+
module ActionController
DEFAULT_RENDER_STATUS_CODE = "200 OK"
@@ -318,7 +320,7 @@ module ActionController
end
def render_to_string(options = {})
- Rack::Utils.body_to_s(render_to_body(options)).to_ary.join
+ AbstractController::Renderer.body_to_s(render_to_body(options))
end
# Clears the rendered results, allowing for another render to be performed.