From df42d26f990cd013c8d80505a9a92537fbcaa4bf Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 17 Apr 2009 18:34:49 -0500 Subject: Rename render_to_string to render_to_body since it may return any Rack-compatible body, not just strings --- actionpack/lib/action_controller/abstract/renderer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_controller/abstract') diff --git a/actionpack/lib/action_controller/abstract/renderer.rb b/actionpack/lib/action_controller/abstract/renderer.rb index 68c3b07b84..eb248652a8 100644 --- a/actionpack/lib/action_controller/abstract/renderer.rb +++ b/actionpack/lib/action_controller/abstract/renderer.rb @@ -17,7 +17,7 @@ module AbstractController end def render(options = {}) - self.response_body = render_to_string(options) + self.response_body = render_to_body(options) end # Raw rendering of a template. @@ -26,7 +26,7 @@ module AbstractController # @option _layout The relative path to the layout template to use # # :api: plugin - def render_to_string(options = {}) + def render_to_body(options = {}) name = options[:_template_name] || action_name template = options[:_template] || view_paths.find_by_parts(name.to_s, formats, options[:_prefix]) @@ -55,4 +55,4 @@ module AbstractController end end end -end \ No newline at end of file +end -- cgit v1.2.3