Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…nger needed
  • Loading branch information...
commit f545e19692c84eeaa8de38319766b5ceed1768c1 1 parent 2336430
@technoweenie technoweenie authored jeremy committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/lib/action_view/helpers/text_helper.rb
View
6 actionpack/lib/action_view/helpers/text_helper.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.