diff options
author | Sam Stephenson <sam@37signals.com> | 2018-02-13 15:01:26 -0600 |
---|---|---|
committer | Sam Stephenson <sam@37signals.com> | 2018-02-13 15:01:26 -0600 |
commit | 0f6e9b7cc59e3fe94013c5b9730129930ada370b (patch) | |
tree | f3e60368d84e6b506bfa4c3f97a185f21b6326fe /lib/active_text | |
parent | d1f50a4cbe54d15a07608b20ed2fc05e8960bc1d (diff) | |
download | rails-0f6e9b7cc59e3fe94013c5b9730129930ada370b.tar.gz rails-0f6e9b7cc59e3fe94013c5b9730129930ada370b.tar.bz2 rails-0f6e9b7cc59e3fe94013c5b9730129930ada370b.zip |
Delegate Content#html_safe to #to_s
Diffstat (limited to 'lib/active_text')
-rw-r--r-- | lib/active_text/content.rb | 2 |
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) |