1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
Jean Boussier fdb5c0463b Special case SafeBuffer#concat(nil) to avoid the bulk of deprecations
After trying out https://github.com/rails/rails/pull/42123
it appears that the bulk of the deprecations are for cases such as:

```ruby
output << some_helper
```

Where `some_helper` happens to sometime return `nil`.

While a regular String would indeed raise a `TypeError`
on such case, I wonder if it wouldn't be worth to special
case this specific scenario as it is quite harmless and would
drastically reduce the amount of deprecated code.
2021-05-06 10:49:21 +02:00
..
active_support Special case SafeBuffer#concat(nil) to avoid the bulk of deprecations 2021-05-06 10:49:21 +02:00
active_support.rb Implement an optimized Cache::Entry coder 2021-04-25 08:27:58 +02:00