Skip to Content Skip to Search

module ActionText::Attachments::Minification

Public instance methods

Source code GitHub
# File actiontext/lib/action_text/attachments/minification.rb, line 11
def fragment_by_minifying_attachments(content)
  Fragment.wrap(content).replace(ActionText::Attachment.tag_name) do |node|
    node.tap { |n| n.inner_html = "" }
  end
end

Definition files