aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2018-02-13 15:01:26 -0600
committerSam Stephenson <sam@37signals.com>2018-02-13 15:01:26 -0600
commit0f6e9b7cc59e3fe94013c5b9730129930ada370b (patch)
treef3e60368d84e6b506bfa4c3f97a185f21b6326fe /lib
parentd1f50a4cbe54d15a07608b20ed2fc05e8960bc1d (diff)
downloadrails-0f6e9b7cc59e3fe94013c5b9730129930ada370b.tar.gz
rails-0f6e9b7cc59e3fe94013c5b9730129930ada370b.tar.bz2
rails-0f6e9b7cc59e3fe94013c5b9730129930ada370b.zip
Delegate Content#html_safe to #to_s
Diffstat (limited to 'lib')
-rw-r--r--lib/active_text/content.rb2
1 files changed, 1 insertions, 1 deletions
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)