Add helpers for mailer footer styles

This commit is contained in:
decabeza
2022-06-30 16:44:12 +02:00
committed by Javi Martín
parent eb39e8e365
commit f63609a798
4 changed files with 19 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
class ApplicationMailer < ActionMailer::Base
helper :settings
helper :application
helper :mailer
default from: proc { "#{Setting["mailer_from_name"]} <#{Setting["mailer_from_address"]}>" }
layout "mailer"
end

View File

@@ -2,7 +2,6 @@ class Mailer < ApplicationMailer
after_action :prevent_delivery_to_users_without_email
helper :text_with_links
helper :mailer
helper :users
def comment(comment)