Skip to content

Commit

Permalink
Displaying notifications' recipients even if they aren't notified
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Mar 25, 2019
1 parent fff4957 commit d0497c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/dmsf_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d0497c7

Please sign in to comment.