diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-02 13:49:14 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-02 21:32:50 -0700 |
commit | 4d4c8e298f5396e6b8ace0a10d7f991594aace2d (patch) | |
tree | 2a5d4704d307ff2469de6226c9c2fbb691e75e32 /actionpack/lib/action_view/helpers/text_helper.rb | |
parent | 0bdb7d353b4ac6f5470884360f9a480a16bd709c (diff) | |
download | rails-4d4c8e298f5396e6b8ace0a10d7f991594aace2d.tar.gz rails-4d4c8e298f5396e6b8ace0a10d7f991594aace2d.tar.bz2 rails-4d4c8e298f5396e6b8ace0a10d7f991594aace2d.zip |
Don't pass block binding to concat
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 4711b84ae7..3be4843386 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -15,17 +15,17 @@ module ActionView # # ==== Examples # <% - # concat "hello", binding + # concat "hello" # # is the equivalent of <%= "hello" %> # # if (logged_in == true): - # concat "Logged in!", binding + # concat "Logged in!" # else - # concat link_to('login', :action => login), binding + # concat link_to('login', :action => login) # end # # will either display "Logged in!" or a login link # %> - def concat(string, binding = nil) + def concat(string) if @output_buffer @output_buffer << string else |