Module: ActionText::Attachments::Conversion

Extended by:
ActiveSupport::Concern
Included in:
ActionText::Attachment
Defined in:
actiontext/lib/action_text/attachments/conversion.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included, prepend_features, prepended

Instance Method Details

#to_editor_attachmentObject



20
21
22
# File 'actiontext/lib/action_text/attachments/conversion.rb', line 20

def to_editor_attachment
  dup.to_editor_attachment!
end

#to_editor_attachment!Object

:nodoc:



24
25
26
27
28
29
# File 'actiontext/lib/action_text/attachments/conversion.rb', line 24

def to_editor_attachment! # :nodoc:
  if (content = editor_attachment_content)
    node["content"] = content
  end
  self
end