##// END OF EJS Templates
Optimize the N+1 query in watcher_recipients. #5415...
Eric Davis -
r3689:d2f8feb7c59a
parent child
Show More
@@ -57,7 +57,8 module Redmine
57 57
58 58 # Returns an array of watchers' email addresses
59 59 def watcher_recipients
60 notified = watchers.collect(&:user).select(&:active?)
60 notified = watcher_users.active
61
61 62 if respond_to?(:visible?)
62 63 notified.reject! {|user| !visible?(user)}
63 64 end
General Comments 0
You need to be logged in to leave comments. Login now