mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
18 lines
425 B
Ruby
18 lines
425 B
Ruby
# frozen_string_literal: true
|
|
|
|
module MailerHelper
|
|
def footer_ofn_link
|
|
ofn = I18n.t("shared.mailers.powered_by.open_food_network")
|
|
|
|
if ContentConfig.footer_email.present?
|
|
mail_to ContentConfig.footer_email, ofn
|
|
else
|
|
link_to ofn, "https://www.openfoodnetwork.org"
|
|
end
|
|
end
|
|
|
|
def order_reply_email(order)
|
|
order.distributor.email_address.presence || order.distributor.contact.email
|
|
end
|
|
end
|