aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-06-25 06:04:06 -0500
committerJoshua Peek <josh@joshpeek.com>2008-06-25 06:04:06 -0500
commita9259ccfe05690dc4cb7993d551603c39619c27f (patch)
treecd20540118395353cef76dfe3377ced611322269 /actionpack/lib/action_controller
parentad772402c46a79c2d38979cef754b26dbd868196 (diff)
downloadrails-a9259ccfe05690dc4cb7993d551603c39619c27f.tar.gz
rails-a9259ccfe05690dc4cb7993d551603c39619c27f.tar.bz2
rails-a9259ccfe05690dc4cb7993d551603c39619c27f.zip
Hide InlineTemplate class from ActionController and use ActionView's render API
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-xactionpack/lib/action_controller/base.rb3
1 files changed, 1 insertions, 2 deletions
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)