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

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actiontext-7.1.3.4/lib/action_text/attachments/minification.rb
actiontext-7.1.5.1 lib/action_text/attachments/minification.rb
actiontext-7.0.8.7 lib/action_text/attachments/minification.rb
actiontext-7.1.5 lib/action_text/attachments/minification.rb
actiontext-7.1.4.2 lib/action_text/attachments/minification.rb
actiontext-7.0.8.6 lib/action_text/attachments/minification.rb
actiontext-7.1.4.1 lib/action_text/attachments/minification.rb
actiontext-7.0.8.5 lib/action_text/attachments/minification.rb
actiontext-7.1.4 lib/action_text/attachments/minification.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actiontext-7.1.3.4/lib/action_text/attachments/minification.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actiontext-7.0.8.4/lib/action_text/attachments/minification.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actiontext-7.0.5.1/lib/action_text/attachments/minification.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actiontext-7.0.5.1/lib/action_text/attachments/minification.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actiontext-7.0.5.1/lib/action_text/attachments/minification.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actiontext-7.1.3.4/lib/action_text/attachments/minification.rb
actiontext-7.1.3.4 lib/action_text/attachments/minification.rb
actiontext-7.0.8.4 lib/action_text/attachments/minification.rb
actiontext-7.1.3.2 lib/action_text/attachments/minification.rb
actiontext-7.1.3.1 lib/action_text/attachments/minification.rb
actiontext-7.0.8.1 lib/action_text/attachments/minification.rb