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
Sean Doyle 76b33aa3d1
Add ActionText::FixtureSet.attachment
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>
2020-10-30 15:53:35 -04:00

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