From 9dd254c2a20b393d68c9db4b17a15a672e2a2c16 Mon Sep 17 00:00:00 2001 From: r7kamura Date: Thu, 18 Apr 2019 17:44:22 +0900 Subject: Preserve html_safe? status on ActiveSupport::SafeBuffer#* --- activesupport/CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'activesupport/CHANGELOG.md') diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 597e7b8929..301b0c8822 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,15 @@ +* Preserve `html_safe?` status on `ActiveSupport::SafeBuffer#*`. + + Before: + + ("
".html_safe * 2).html_safe? #=> nil + + After: + + ("
".html_safe * 2).html_safe? #=> true + + *Ryo Nakamura* + * Calling test methods with `with_info_handler` method to allow minitest-hooks plugin to work. -- cgit v1.2.3