diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-01-16 03:29:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 03:29:11 +0100 |
commit | 5276c0a0900a0886b59a8ead2346540aa381ea46 (patch) | |
tree | fbc338f77623f670b6421b87606028a68fb68bd5 /config/initializers/premailer_rails.rb | |
parent | 7861c5f108a8f8cb0450f3b1ef865b1177c706fc (diff) |
HTML e-mails for UserMailer (#6256)
- premailer gem to turn CSS into inline styles automatically - rework UserMailer templates - reword UserMailer templates
Diffstat (limited to 'config/initializers/premailer_rails.rb')
-rw-r--r-- | config/initializers/premailer_rails.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/initializers/premailer_rails.rb b/config/initializers/premailer_rails.rb new file mode 100644 index 000000000..31c02dffa --- /dev/null +++ b/config/initializers/premailer_rails.rb @@ -0,0 +1,6 @@ +require_relative '../../lib/mastodon/premailer_webpack_strategy' + +Premailer::Rails.config.merge!(remove_ids: true, + adapter: :nokogiri, + generate_text_part: false, + strategies: [PremailerWebpackStrategy]) |