aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_text/content.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_text/content.rb')
-rw-r--r--lib/action_text/content.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_text/content.rb b/lib/action_text/content.rb
index c296896ac4..22b52cff1c 100644
--- a/lib/action_text/content.rb
+++ b/lib/action_text/content.rb
@@ -4,7 +4,7 @@ module ActionText
attr_reader :fragment
- delegate :blank?, :empty?, :html_safe, :present?, to: :to_s
+ delegate :blank?, :empty?, :html_safe, :present?, to: :to_html # Delegating to to_html to avoid including the layout
def initialize(content = nil)
@fragment = ActionText::Attachment.fragment_by_canonicalizing_attachments(content)