mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
76b33aa3d1
Permit generating rich-text attachment markup in YAML fixtures: hello_world_review_content: record: hello_world (Review) name: content body: <p><%= ActionText::FixtureSet.attachment("messages", :hello_world) %> is great!</p>
39 lines
756 B
Ruby
39 lines
756 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 :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
|
|
end
|