summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/document.rb7
-rw-r--r--app/models/message.rb7
-rw-r--r--app/models/news.rb7
3 files changed, 0 insertions, 21 deletions
diff --git a/app/models/document.rb b/app/models/document.rb
index d2d20d05d..3aae39850 100644
--- a/app/models/document.rb
+++ b/app/models/document.rb
@@ -46,11 +46,4 @@ class Document < ActiveRecord::Base
end
@updated_on
end
-
- # Returns the mail adresses of users that should be notified
- def recipients
- notified = project.notified_users
- notified.reject! {|user| !visible?(user)}
- notified.collect(&:mail)
- end
end
diff --git a/app/models/message.rb b/app/models/message.rb
index 535143775..1e59719dd 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -90,13 +90,6 @@ class Message < ActiveRecord::Base
usr && usr.logged? && (usr.allowed_to?(:delete_messages, project) || (self.author == usr && usr.allowed_to?(:delete_own_messages, project)))
end
- # Returns the mail adresses of users that should be notified
- def recipients
- notified = project.notified_users
- notified.reject! {|user| !visible?(user)}
- notified.collect(&:mail)
- end
-
private
def add_author_as_watcher
diff --git a/app/models/news.rb b/app/models/news.rb
index a7b173439..a167cdf38 100644
--- a/app/models/news.rb
+++ b/app/models/news.rb
@@ -33,13 +33,6 @@ class News < ActiveRecord::Base
!user.nil? && user.allowed_to?(:view_news, project)
end
- # Returns the mail adresses of users that should be notified
- def recipients
- notified = project.notified_users
- notified.reject! {|user| !visible?(user)}
- notified.collect(&:mail)
- end
-
# returns latest news for projects visible by user
def self.latest(user = User.current, count = 5)
find(:all, :limit => count, :conditions => Project.allowed_to_condition(user, :view_news), :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC")