mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-21 00:47:26 +00:00
Simplify producer mailer
The method is used only once and therefore not required
This commit is contained in:
@@ -9,7 +9,7 @@ class ProducerMailer < ApplicationMailer
|
||||
|
||||
load_data
|
||||
|
||||
I18n.with_locale(owner_locale) do
|
||||
I18n.with_locale valid_locale(@producer.owner) do
|
||||
return unless orders?(order_cycle, producer)
|
||||
|
||||
mail(
|
||||
@@ -23,10 +23,6 @@ class ProducerMailer < ApplicationMailer
|
||||
|
||||
private
|
||||
|
||||
def owner_locale
|
||||
valid_locale(@producer.owner)
|
||||
end
|
||||
|
||||
def load_data
|
||||
@coordinator = @order_cycle.coordinator
|
||||
|
||||
|
||||
Reference in New Issue
Block a user