aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/new_base/renderer.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-20 15:33:08 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-20 15:34:26 -0700
commit01f032f256f96f65e154061b582fbb4b32e4a692 (patch)
tree9d9d0deeeec9a8c86c0b85c55c3ed13385f55f49 /actionpack/lib/action_controller/new_base/renderer.rb
parentc03b0ca7eb7e73587005e1440bf90cd01ed10aa5 (diff)
downloadrails-01f032f256f96f65e154061b582fbb4b32e4a692.tar.gz
rails-01f032f256f96f65e154061b582fbb4b32e4a692.tar.bz2
rails-01f032f256f96f65e154061b582fbb4b32e4a692.zip
Added responds_to to new base.
Diffstat (limited to 'actionpack/lib/action_controller/new_base/renderer.rb')
-rw-r--r--actionpack/lib/action_controller/new_base/renderer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/new_base/renderer.rb b/actionpack/lib/action_controller/new_base/renderer.rb
index 9253df53a1..276816a6f5 100644
--- a/actionpack/lib/action_controller/new_base/renderer.rb
+++ b/actionpack/lib/action_controller/new_base/renderer.rb
@@ -18,7 +18,7 @@ module ActionController
_process_options(options)
if options.key?(:text)
- options[:_template] = ActionView::TextTemplate.new(_text(options))
+ options[:_template] = ActionView::TextTemplate.new(_text(options), formats.first)
template = nil
elsif options.key?(:inline)
handler = ActionView::Template.handler_class_for_extension(options[:type] || "erb")