Sha256: 953c2bc43163a20691e63c0b4f69c82aa06e8eab4a3161bbf3728fc1103e2f64
Contents?: true
Size: 675 Bytes
Versions: 18
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true require 'thredded/email_transformer/onebox' module Thredded # This transformer should applied to emails so that they render correctly in the email clients. # # For example, if you use roadie, you can configure it to use the transformer in the initializer: # # # config/initializers/roadie.rb # Rails.application.config.roadie.before_transformation = Thredded::EmailTransformer # module EmailTransformer mattr_accessor :transformers self.transformers = [Onebox] # @param doc [Nokogiri::HTML::Document] def self.call(doc) transformers.each { |transformer| transformer.call(doc) } end end end
Version data entries
18 entries across 18 versions & 2 rubygems