blob: aa25875aae5d75e285719b3a94f66bdd82d42197 (
plain) (
tree)
|
|
module ActiveText
module Attachments
module Minification
extend ActiveSupport::Concern
class_methods do
def fragment_by_minifying_attachments(content)
Fragment.wrap(content).replace(ActiveText::Attachment::SELECTOR) do |node|
node.tap { |n| n.inner_html = "" }
end
end
end
end
end
end
|