aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorrick <technoweenie@gmail.com>2008-06-09 12:06:23 -0400
committerrick <technoweenie@gmail.com>2008-06-09 12:06:23 -0400
commit64637da284ed4685591c178202ee103e6bee71cf (patch)
tree841957520c8dab91a503ebaaed5d876131ed2b2c /actionpack
parente94e53f9cd70bee69759661e9771da3fe0ee9554 (diff)
downloadrails-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.rb5
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