Sha256: 1b0907deebd5d2855073eed746b00594a3d3f706e6d6bf07fa88c1d15da8da5c
Contents?: true
Size: 395 Bytes
Versions: 77
Compression:
Stored size: 395 Bytes
Contents
# frozen_string_literal: true module ActionText module Attachments module Minification extend ActiveSupport::Concern class_methods do def fragment_by_minifying_attachments(content) Fragment.wrap(content).replace(ActionText::Attachment::SELECTOR) do |node| node.tap { |n| n.inner_html = "" } end end end end end end
Version data entries
77 entries across 77 versions & 8 rubygems