Remove the contact_email locale

This commit is contained in:
gregoirenovel 2018-05-31 15:45:25 +02:00
parent 185f08f63e
commit 23931a7591
9 changed files with 8 additions and 9 deletions

View file

@ -36,7 +36,7 @@ class Commentaire < ApplicationRecord
# - If a user or an invited user posted a commentaire, do nothing,
# the notification system will properly
# - Otherwise, a gestionnaire posted a commentaire, we need to notify the user
if !email.in?([I18n.t("dynamics.contact_email"), dossier_user_email, *invited_users_emails])
if !email.in?([CONTACT_EMAIL, dossier_user_email, *invited_users_emails])
notify_user
end
end