Sha256: 6a2f81c90d81e4e06faa478ca366ed65e07ba005a39b80ff153baa23b5fa68c4

Contents?: true

Size: 1.38 KB

Versions: 22

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

require "active_support"
require "active_support/rails"

require "action_text/version"
require "action_text/deprecator"

require "nokogiri"

# :markup: markdown
# :include: ../README.md
module ActionText
  extend ActiveSupport::Autoload

  autoload :Attachable
  autoload :AttachmentGallery
  autoload :Attachment
  autoload :Attribute
  autoload :Content
  autoload :Encryption
  autoload :Fragment
  autoload :FixtureSet
  autoload :HtmlConversion
  autoload :PlainTextConversion
  autoload :Rendering
  autoload :Serialization
  autoload :TrixAttachment

  module Attachables
    extend ActiveSupport::Autoload

    autoload :ContentAttachment
    autoload :MissingAttachable
    autoload :RemoteImage
  end

  module Attachments
    extend ActiveSupport::Autoload

    autoload :Caching
    autoload :Minification
    autoload :TrixConversion
  end

  class << self
    def html_document_class
      return @html_document_class if defined?(@html_document_class)
      @html_document_class =
        defined?(Nokogiri::HTML5) ? Nokogiri::HTML5::Document : Nokogiri::HTML4::Document
    end

    def html_document_fragment_class
      return @html_document_fragment_class if defined?(@html_document_fragment_class)
      @html_document_fragment_class =
        defined?(Nokogiri::HTML5) ? Nokogiri::HTML5::DocumentFragment : Nokogiri::HTML4::DocumentFragment
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
actiontext-8.0.0 lib/action_text.rb
actiontext-7.2.2 lib/action_text.rb
actiontext-7.1.5 lib/action_text.rb
actiontext-8.0.0.rc2 lib/action_text.rb
actiontext-7.2.1.2 lib/action_text.rb
actiontext-7.1.4.2 lib/action_text.rb
actiontext-8.0.0.rc1 lib/action_text.rb
actiontext-7.2.1.1 lib/action_text.rb
actiontext-7.1.4.1 lib/action_text.rb
actiontext-8.0.0.beta1 lib/action_text.rb
omg-actiontext-8.0.0.alpha9 lib/action_text.rb
omg-actiontext-8.0.0.alpha8 lib/action_text.rb
omg-actiontext-8.0.0.alpha7 lib/action_text.rb
omg-actiontext-8.0.0.alpha4 lib/action_text.rb
omg-actiontext-8.0.0.alpha3 lib/action_text.rb
actiontext-7.1.4 lib/action_text.rb
actiontext-7.2.1 lib/action_text.rb
actiontext-7.2.0 lib/action_text.rb
actiontext-7.2.0.rc1 lib/action_text.rb
actiontext-7.2.0.beta3 lib/action_text.rb