aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-xactionpack/lib/action_controller/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 3818960979..d419a09ec5 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -850,8 +850,8 @@ module ActionController #:nodoc:
response.headers["Location"] = url_for(location)
end
- if text = options[:text]
- render_for_text(text, options[:status])
+ if options.has_key?(:text)
+ render_for_text(options[:text], options[:status])
else
if file = options[:file]