Implement Credo software design suggestions
This commit is contained in:
@@ -13,7 +13,7 @@ defmodule Mobilizon.Web.Email.Participation do
|
||||
alias Mobilizon.Actors.Actor
|
||||
alias Mobilizon.Events.Participant
|
||||
|
||||
alias Mobilizon.Web.Email
|
||||
alias Mobilizon.Web.{Email, Gettext}
|
||||
|
||||
@doc """
|
||||
Send emails to local user
|
||||
@@ -46,7 +46,7 @@ defmodule Mobilizon.Web.Email.Participation do
|
||||
%Participant{event: event, role: :rejected},
|
||||
locale
|
||||
) do
|
||||
Mobilizon.Web.Gettext.put_locale(locale)
|
||||
Gettext.put_locale(locale)
|
||||
|
||||
subject =
|
||||
gettext(
|
||||
@@ -67,7 +67,7 @@ defmodule Mobilizon.Web.Email.Participation do
|
||||
%Participant{event: event, role: :participant},
|
||||
locale
|
||||
) do
|
||||
Mobilizon.Web.Gettext.put_locale(locale)
|
||||
Gettext.put_locale(locale)
|
||||
|
||||
subject =
|
||||
gettext(
|
||||
|
||||
Reference in New Issue
Block a user