Sha256: 1725d320d5bfbaf0603eee782a6a76d0fee67081a103bf66de8a5bbaa12158b7
Contents?: true
Size: 415 Bytes
Versions: 21
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true # :markup: markdown 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
21 entries across 21 versions & 2 rubygems