diff options
author | rick <technoweenie@gmail.com> | 2008-06-09 12:06:23 -0400 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-09 14:18:21 -0700 |
commit | f545e19692c84eeaa8de38319766b5ceed1768c1 (patch) | |
tree | d80f975be02296888cb08827e539544ebf036266 /actionpack | |
parent | 233643047104131565467787d0bbc0841bbc77cb (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 6 |
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 |