Sha256: 13676cba6a3e014e975d9ce51246562d6be6768f0cba7e910f54e537f4cdfa04
Contents?: true
Size: 394 Bytes
Versions: 56
Compression:
Stored size: 394 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.tag_name) do |node| node.tap { |n| n.inner_html = "" } end end end end end end
Version data entries
56 entries across 53 versions & 6 rubygems