From a9259ccfe05690dc4cb7993d551603c39619c27f Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 25 Jun 2008 06:04:06 -0500 Subject: Hide InlineTemplate class from ActionController and use ActionView's render API --- actionpack/lib/action_controller/base.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index c50c55dd05..7cc670289d 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -859,8 +859,7 @@ module ActionController #:nodoc: elsif inline = options[:inline] add_variables_to_assigns - tmpl = ActionView::InlineTemplate.new(@template, options[:inline], options[:locals], options[:type]) - render_for_text(@template.render_template(tmpl), options[:status]) + render_for_text(@template.render(options), options[:status]) elsif action_name = options[:action] template = default_template_name(action_name.to_s) -- cgit v1.2.3