aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_text/content.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_text/content.rb')
-rw-r--r--lib/active_text/content.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/active_text/content.rb b/lib/active_text/content.rb
index c9546fb4c5..190f7d3c7b 100644
--- a/lib/active_text/content.rb
+++ b/lib/active_text/content.rb
@@ -46,7 +46,11 @@ module ActiveText
end
def to_html
- render_attachments(&:to_html).to_html
+ render_attachments do |attachment|
+ attachment.node.tap do |node|
+ node.inner_html = ApplicationController.render(attachment)
+ end
+ end.to_html
end
def to_s