mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
add deprecation for the #concat helper's 2nd argument, which is no longer needed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user