1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update CHANGELOG for SafetyBuffer slice access

Co-authored-by: no-itsbackpack <no-itsbackpack@github.com>
This commit is contained in:
Yumin Wong 2018-09-06 15:17:18 -05:00
parent 0a1567793b
commit 1d42a661d8

View file

@ -1,3 +1,10 @@
* Maintain `html_safe?` on html_safe strings when sliced
string = "<div>test</div>".html_safe
string[-1..1].html_safe? # => true
*Elom Gomez, Yumin Wong*
* Add `Array#extract!`.
The method removes and returns the elements for which the block returns a true value.