mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
Fix Roadie dev config to inline CSS in emails
Roadie doesn't work with asset host: * https://github.com/Mange/roadie-rails?tab=readme-ov-file#known-issues And we don't need it.
This commit is contained in:
@@ -18,6 +18,7 @@ class ApplicationMailer < ActionMailer::Base
|
||||
|
||||
def roadie_options
|
||||
# This lets us specify assets using relative paths in email templates
|
||||
super.merge(url_options: { host: URI(main_app.root_url).host })
|
||||
url = URI(main_app.root_url)
|
||||
super.merge(url_options: { host: url.host, port: url.port })
|
||||
end
|
||||
end
|
||||
|
||||
@@ -70,8 +70,6 @@ Openfoodnetwork::Application.configure do
|
||||
# Show emails using Letter Opener
|
||||
config.action_mailer.delivery_method = :letter_opener
|
||||
config.action_mailer.default_url_options = { host: "localhost:3000" }
|
||||
config.action_mailer.asset_host = "http://localhost:3000"
|
||||
config.asset_host = "http://localhost:3000"
|
||||
|
||||
config.log_level = ENV.fetch("DEV_LOG_LEVEL", :debug)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user