aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-26 18:35:38 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-26 18:35:38 +0000
commitd440cf6483465117cae4002583ea959cd8ee99b7 (patch)
treeda2e6b266de7e257feb605dcb7fbb93552476b9f
parent5b8b9178b357b46af2d8ff638b0ceac78e709a9e (diff)
downloadrails-d440cf6483465117cae4002583ea959cd8ee99b7.tar.gz
rails-d440cf6483465117cae4002583ea959cd8ee99b7.tar.bz2
rails-d440cf6483465117cae4002583ea959cd8ee99b7.zip
Fixed snag in status reporting
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-xactionpack/lib/action_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 5fc67b17bd..f0b71bcac6 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -634,7 +634,7 @@ module ActionController #:nodoc:
def render_file(template_path, status = nil, use_full_path = false)
add_variables_to_assigns
assert_existance_of_template_file(template_path) if use_full_path
- logger.info("Rendering #{template_path}" + status ? "(#{status})" : '') if logger
+ logger.info("Rendering #{template_path}" + (status ? "(#{status})" : '')) if logger
render_text(@template.render_file(template_path, use_full_path), status)
end