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

Version Path
actiontext-6.1.7.10 lib/action_text/attachments/minification.rb
actiontext-6.1.7.9 lib/action_text/attachments/minification.rb
actiontext-6.1.7.8 lib/action_text/attachments/minification.rb
actiontext-6.1.7.7 lib/action_text/attachments/minification.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actiontext-6.1.6.1/lib/action_text/attachments/minification.rb
actiontext-6.1.7.6 lib/action_text/attachments/minification.rb
actiontext-6.1.7.5 lib/action_text/attachments/minification.rb
actiontext-6.1.7.4 lib/action_text/attachments/minification.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actiontext-6.1.6.1/lib/action_text/attachments/minification.rb
actiontext-6.1.7.3 lib/action_text/attachments/minification.rb
actiontext-6.1.7.2 lib/action_text/attachments/minification.rb
actiontext-6.1.7.1 lib/action_text/attachments/minification.rb
actiontext-6.0.6.1 lib/action_text/attachments/minification.rb
actiontext-6.1.7 lib/action_text/attachments/minification.rb
actiontext-6.0.6 lib/action_text/attachments/minification.rb
actiontext-6.1.6.1 lib/action_text/attachments/minification.rb
actiontext-6.0.5.1 lib/action_text/attachments/minification.rb
actiontext5-5.2.0 lib/action_text/attachments/minification.rb
actiontext-6.0.5 lib/action_text/attachments/minification.rb
actiontext-6.1.6 lib/action_text/attachments/minification.rb