From 0134ca6a0166bfddd5e6e238877c3212824f0e6e Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 20 Nov 2012 09:26:23 -0200 Subject: Remove private partial/template renderer methods Since now these objects are not cached anymore, there's no need to have these private methods, just instantiate each of them in the necessary place. --- actionpack/lib/action_view/renderer/renderer.rb | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'actionpack/lib/action_view/renderer/renderer.rb') diff --git a/actionpack/lib/action_view/renderer/renderer.rb b/actionpack/lib/action_view/renderer/renderer.rb index dfef43bc9d..30a0c4be70 100644 --- a/actionpack/lib/action_view/renderer/renderer.rb +++ b/actionpack/lib/action_view/renderer/renderer.rb @@ -33,22 +33,12 @@ module ActionView # Direct accessor to template rendering. def render_template(context, options) #:nodoc: - _template_renderer.render(context, options) + TemplateRenderer.new(@lookup_context).render(context, options) end # Direct access to partial rendering. def render_partial(context, options, &block) #:nodoc: - _partial_renderer.render(context, options, block) - end - - private - - def _template_renderer #:nodoc: - TemplateRenderer.new(@lookup_context) - end - - def _partial_renderer #:nodoc: - PartialRenderer.new(@lookup_context) + PartialRenderer.new(@lookup_context).render(context, options, block) end end end -- cgit v1.2.3