Skip to content

Commit

Permalink
add deprecation for the #concat helper's 2nd argument, which is no lo…
Browse files Browse the repository at this point in the history
…nger needed
  • Loading branch information
technoweenie authored and jeremy committed Jun 9, 2008
1 parent 2336430 commit f545e19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actionpack/lib/action_view/helpers/text_helper.rb
Expand Up @@ -25,7 +25,11 @@ module TextHelper
# 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
Expand Down

0 comments on commit f545e19

Please sign in to comment.