module ActionText::ContentHelper
def render_action_text_attachment(attachment, locals: {}) # :nodoc:
def render_action_text_attachment(attachment, locals: {}) # :nodoc: options = { locals: locals, object: attachment, partial: attachment } if attachment.respond_to?(:to_attachable_partial_path) options[:partial] = attachment.to_attachable_partial_path end if attachment.respond_to?(:model_name) options[:as] = attachment.model_name.element end render(**options).chomp end