From 1d42a661d8ff7795ebf9255cb7efd17de7b47fb0 Mon Sep 17 00:00:00 2001 From: Yumin Wong Date: Thu, 6 Sep 2018 15:17:18 -0500 Subject: [PATCH] Update CHANGELOG for SafetyBuffer slice access Co-authored-by: no-itsbackpack --- activesupport/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 4ae02edd6a..6266eccc0d 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,10 @@ +* Maintain `html_safe?` on html_safe strings when sliced + + string = "
test
".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.