summaryrefslogtreecommitdiffstats
path: root/app/models/wiki_content.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/wiki_content.rb')
-rw-r--r--app/models/wiki_content.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/wiki_content.rb b/app/models/wiki_content.rb
index 90947d589..992c7da34 100644
--- a/app/models/wiki_content.rb
+++ b/app/models/wiki_content.rb
@@ -41,11 +41,13 @@ class WikiContent < ActiveRecord::Base
page.nil? ? [] : page.attachments
end
+ def notified_users
+ project.notified_users.reject {|user| !visible?(user)}
+ end
+
# Returns the mail addresses of users that should be notified
def recipients
- notified = project.notified_users
- notified.reject! {|user| !visible?(user)}
- notified.collect(&:mail)
+ notified_users.collect(&:mail)
end
# Return true if the content is the current page content