Set current tenant in mailers

This commit is contained in:
Jorge Manrubia
2025-08-27 11:30:08 +02:00
parent cd6ff41eea
commit 45d3bb4b3e
+5
View File
@@ -4,4 +4,9 @@ class ApplicationMailer < ActionMailer::Base
layout "mailer"
append_view_path Rails.root.join("app/views/mailers")
helper AvatarsHelper, HtmlHelper
private
def default_url_options
super.merge(script_name: "/#{ApplicationRecord.current_tenant}")
end
end