diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index 3977971e8d9f80f7fead9b808a806b6225e42523..567ba00b0de23fb841df0a1fcd508fba1e01a5ea 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -71,15 +71,12 @@ def concat(value) super(ERB::Util.h(value)) end end + alias << concat def +(other) dup.concat(other) end - def <<(value) - self.concat(value) - end - def html_safe? true end @@ -102,4 +99,4 @@ def html_safe! def html_safe ActiveSupport::SafeBuffer.new(self) end -end \ No newline at end of file +end