aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2013-09-09 12:05:09 -0300
committerJosé Valim <jose.valim@plataformatec.com.br>2013-09-09 12:33:53 -0300
commita41669563b960d604068013a5b808476391b1cb9 (patch)
tree7dc3d804f06d05de471e34ef8ff3e63618fe2d3e /actionview
parentff8fac614f04f9cc7bc4ce78f3b9a758814cd0ab (diff)
downloadrails-a41669563b960d604068013a5b808476391b1cb9.tar.gz
rails-a41669563b960d604068013a5b808476391b1cb9.tar.bz2
rails-a41669563b960d604068013a5b808476391b1cb9.zip
Remove BasicRendering and remove template functionality from AbsC::Rendering
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/rendering.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/actionview/lib/action_view/rendering.rb b/actionview/lib/action_view/rendering.rb
index c1945cc0c5..e0486ba596 100644
--- a/actionview/lib/action_view/rendering.rb
+++ b/actionview/lib/action_view/rendering.rb
@@ -77,13 +77,6 @@ module ActionView
@_view_renderer ||= ActionView::Renderer.new(lookup_context)
end
- # Render template to response_body
- # :api: public
- def render(*args, &block)
- options = _normalize_render(*args, &block)
- self.response_body = render_to_body(options)
- end
-
# Find and renders a template based on the options given.
# :api: private
def _render_template(options) #:nodoc:
@@ -91,6 +84,11 @@ module ActionView
view_renderer.render(view_context, options)
end
+ def render_to_body(options = {})
+ _process_options(options)
+ _render_template(options)
+ end
+
def rendered_format
Mime[lookup_context.rendered_format]
end