X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3c87946740b83f612561f998f7d83586593be830..3a9428dd1db2fd393dd90cd3ffc744c0bf45fe28:/services/api/app/mailers/admin_notifier.rb diff --git a/services/api/app/mailers/admin_notifier.rb b/services/api/app/mailers/admin_notifier.rb index 45e329030f..2c39a3924e 100644 --- a/services/api/app/mailers/admin_notifier.rb +++ b/services/api/app/mailers/admin_notifier.rb @@ -10,7 +10,7 @@ class AdminNotifier < ActionMailer::Base def new_user(user) @user = user if not Rails.configuration.Users.NewUserNotificationRecipients.empty? then - @recipients = Rails.configuration.Users.NewUserNotificationRecipients + @recipients = Rails.configuration.Users.NewUserNotificationRecipients.keys logger.info "Sending mail to #{@recipients} about new user #{@user.uuid} (#{@user.full_name} <#{@user.email}>)" add_to_subject = '' @@ -27,7 +27,7 @@ class AdminNotifier < ActionMailer::Base def new_inactive_user(user) @user = user if not Rails.configuration.Users.NewInactiveUserNotificationRecipients.empty? then - @recipients = Rails.configuration.Users.NewInactiveUserNotificationRecipients + @recipients = Rails.configuration.Users.NewInactiveUserNotificationRecipients.keys logger.info "Sending mail to #{@recipients} about new user #{@user.uuid} (#{@user.full_name} <#{@user.email}>)" mail(to: @recipients, subject: "#{Rails.configuration.Users.EmailSubjectPrefix}New inactive user notification"