add deprecation for the #concat helper's 2nd argument, which is no longer needed

This commit is contained in:
rick 2008-06-09 12:06:23 -04:00 committed by Jeremy Kemper
parent 2336430471
commit f545e19692
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,11 @@ module ActionView
# end # end
# # will either display "Logged in!" or a login link # # 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 if output_buffer && string
output_buffer << string output_buffer << string
else else