aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/lib/action_text/attachable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actiontext/lib/action_text/attachable.rb')
-rw-r--r--actiontext/lib/action_text/attachable.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actiontext/lib/action_text/attachable.rb b/actiontext/lib/action_text/attachable.rb
index 38cd24aa8d..3343bcc308 100644
--- a/actiontext/lib/action_text/attachable.rb
+++ b/actiontext/lib/action_text/attachable.rb
@@ -67,6 +67,10 @@ module ActionText
super.merge(attachable_sgid: attachable_sgid)
end
+ def to_trix_content_attachment_partial_path
+ to_partial_path
+ end
+
def to_rich_text_attributes(attributes = {})
attributes.dup.tap do |attrs|
attrs[:sgid] = attachable_sgid