1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actiontext/lib/action_text.rb
Jonathan Hefner 614e813161
Disentangle Action Text from ApplicationController
This commit allows Action Text to be used without having an
ApplicationController defined.  In doing so, it also fixes Action Text
attachments to render the correct URL host in mailers.

It also avoids allocating an ActionController::Renderer per request.

Fixes #37183.
Fixes #35578.
Fixes #36963.
Closes #38714.

Co-authored-by: Jeremy Daer <jeremydaer@gmail.com>
2020-10-30 01:01:42 +00:00

38 lines
733 B
Ruby

# frozen_string_literal: true
require "active_support"
require "active_support/rails"
require "nokogiri"
module ActionText
extend ActiveSupport::Autoload
autoload :Attachable
autoload :AttachmentGallery
autoload :Attachment
autoload :Attribute
autoload :Content
autoload :Fragment
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
end