From d0497c7cc7abcfe6ea4b26bfb57e0eb01032506d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Mon, 25 Mar 2019 15:40:14 +0100 Subject: [PATCH] Displaying notifications' recipients even if they aren't notified --- app/models/dmsf_mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/dmsf_mailer.rb b/app/models/dmsf_mailer.rb index 0883b6c58..7a2b06396 100644 --- a/app/models/dmsf_mailer.rb +++ b/app/models/dmsf_mailer.rb @@ -25,8 +25,8 @@ class DmsfMailer < Mailer layout 'mailer' def self.deliver_files_updated(project, files) - files = files.select { |file| file.notify? } users = get_notify_users(project, files) + files = files.select { |file| file.notify? } users.each do |user| files_updated(user, project, files).deliver_later end @@ -47,8 +47,8 @@ def files_updated(user, project, files) end def self.deliver_files_deleted(project, files) - files = files.select { |file| file.notify? } users = get_notify_users(project, files) + files = files.select { |file| file.notify? } users.each do |user| files_deleted(user, project, files).deliver_later end