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

Version Path
actiontext-8.0.1 lib/action_text/attachments/minification.rb
actiontext-8.0.0.1 lib/action_text/attachments/minification.rb
actiontext-7.2.2.1 lib/action_text/attachments/minification.rb
actiontext-8.0.0 lib/action_text/attachments/minification.rb
actiontext-7.2.2 lib/action_text/attachments/minification.rb
actiontext-8.0.0.rc2 lib/action_text/attachments/minification.rb
actiontext-7.2.1.2 lib/action_text/attachments/minification.rb
actiontext-8.0.0.rc1 lib/action_text/attachments/minification.rb
actiontext-7.2.1.1 lib/action_text/attachments/minification.rb
actiontext-8.0.0.beta1 lib/action_text/attachments/minification.rb
omg-actiontext-8.0.0.alpha9 lib/action_text/attachments/minification.rb
omg-actiontext-8.0.0.alpha8 lib/action_text/attachments/minification.rb
omg-actiontext-8.0.0.alpha7 lib/action_text/attachments/minification.rb
omg-actiontext-8.0.0.alpha4 lib/action_text/attachments/minification.rb
omg-actiontext-8.0.0.alpha3 lib/action_text/attachments/minification.rb
actiontext-7.2.1 lib/action_text/attachments/minification.rb
actiontext-7.2.0 lib/action_text/attachments/minification.rb
actiontext-7.2.0.rc1 lib/action_text/attachments/minification.rb
actiontext-7.2.0.beta3 lib/action_text/attachments/minification.rb
actiontext-7.2.0.beta2 lib/action_text/attachments/minification.rb