aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorrick <technoweenie@gmail.com>2008-06-09 12:06:23 -0400
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-09 14:18:21 -0700
commitf545e19692c84eeaa8de38319766b5ceed1768c1 (patch)
treed80f975be02296888cb08827e539544ebf036266 /actionpack/lib
parent233643047104131565467787d0bbc0841bbc77cb (diff)
downloadrails-f545e19692c84eeaa8de38319766b5ceed1768c1.tar.gz
rails-f545e19692c84eeaa8de38319766b5ceed1768c1.tar.bz2
rails-f545e19692c84eeaa8de38319766b5ceed1768c1.zip
add deprecation for the #concat helper's 2nd argument, which is no longer needed
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index 85a3672678..a1a91f6b3d 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -25,7 +25,11 @@ 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