diff options
author | rick <technoweenie@gmail.com> | 2008-06-09 12:06:23 -0400 |
---|---|---|
committer | rick <technoweenie@gmail.com> | 2008-06-09 12:06:23 -0400 |
commit | 64637da284ed4685591c178202ee103e6bee71cf (patch) | |
tree | 841957520c8dab91a503ebaaed5d876131ed2b2c /actionpack | |
parent | e94e53f9cd70bee69759661e9771da3fe0ee9554 (diff) | |
download | rails-64637da284ed4685591c178202ee103e6bee71cf.tar.gz rails-64637da284ed4685591c178202ee103e6bee71cf.tar.bz2 rails-64637da284ed4685591c178202ee103e6bee71cf.zip |
add deprecation for the #concat helper's 2nd argument, which is no longer needed
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index f81f7eded6..3077c8f970 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -25,7 +25,10 @@ module ActionView # end # # will either display "Logged in!" or a login link # %> - def concat(string) + def concat(string, unused_binding = nil) + if unused_binding + ActiveSupport::Deprecation.warn("The binding argument of #concat is no longer needed. Please remove it from your views and helpers.") + end if @output_buffer && string @output_buffer << string else |