diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 18:00:01 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 18:00:01 -0700 |
commit | 26ec1be24a820327d00e22fb65764a3dc06977e2 (patch) | |
tree | ef57f2e85a8c22ae6a6ea2dffa98c03723845742 /actionpack/lib/action_view/helpers/text_helper.rb | |
parent | e732a405ab7d0d04f8a254764970c9dcda988f01 (diff) | |
download | rails-26ec1be24a820327d00e22fb65764a3dc06977e2.tar.gz rails-26ec1be24a820327d00e22fb65764a3dc06977e2.tar.bz2 rails-26ec1be24a820327d00e22fb65764a3dc06977e2.zip |
concat should ignore nil
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 3be4843386..f81f7eded6 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -26,7 +26,7 @@ module ActionView # # will either display "Logged in!" or a login link # %> def concat(string) - if @output_buffer + if @output_buffer && string @output_buffer << string else string |