Module: Thredded::EmailTransformer
- Defined in:
- lib/thredded/email_transformer.rb,
lib/thredded/email_transformer/base.rb,
lib/thredded/email_transformer/onebox.rb
Overview
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
Defined Under Namespace
Modules: Helpers Classes: Base, Onebox
Class Method Summary collapse
Class Method Details
.call(doc) ⇒ Object
18 19 20 |
# File 'lib/thredded/email_transformer.rb', line 18 def self.call(doc) transformers.each { |transformer| transformer.call(doc) } end |