aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorYumin Wong <itsbagpack@github.com>2018-09-06 15:17:18 -0500
committerYumin Wong <itsbagpack@github.com>2018-09-06 15:17:18 -0500
commit1d42a661d8ff7795ebf9255cb7efd17de7b47fb0 (patch)
treef47278e35bed7831c791072d1317b0ef70809cff /activesupport/CHANGELOG.md
parent0a1567793b556c50ae775128a75a96c2b929fb4d (diff)
downloadrails-1d42a661d8ff7795ebf9255cb7efd17de7b47fb0.tar.gz
rails-1d42a661d8ff7795ebf9255cb7efd17de7b47fb0.tar.bz2
rails-1d42a661d8ff7795ebf9255cb7efd17de7b47fb0.zip
Update CHANGELOG for SafetyBuffer slice access
Co-authored-by: no-itsbackpack <no-itsbackpack@github.com>
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md7
1 files changed, 7 insertions, 0 deletions
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 = "<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.