Simplify producer mailer

The method is used only once and therefore not required
This commit is contained in:
drummer83
2024-01-30 22:57:19 +01:00
parent d91b48a01b
commit b786d386f1

View File

@@ -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