From 0f6e9b7cc59e3fe94013c5b9730129930ada370b Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 13 Feb 2018 15:01:26 -0600 Subject: Delegate Content#html_safe to #to_s --- lib/active_text/content.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/active_text') diff --git a/lib/active_text/content.rb b/lib/active_text/content.rb index 190f7d3c7b..58589cc110 100644 --- a/lib/active_text/content.rb +++ b/lib/active_text/content.rb @@ -4,7 +4,7 @@ module ActiveText attr_reader :fragment - delegate :blank?, :empty?, :present?, to: :to_s + delegate :blank?, :empty?, :html_safe, :present?, to: :to_s def initialize(content = nil) @fragment = ActiveText::Attachment.fragment_by_canonicalizing_attachments(content) -- cgit v1.2.3