summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-02-01 18:57:12 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-02-01 18:57:12 +0000
commit358e3194d79b9e4503edd48d2179b9f8f2920cd3 (patch)
treeb756b0e53207d924b805398028bae104da2b1019 /app/models/message.rb
parentd43c860448ce71ca3f35ac6487775deaa0dcb3c3 (diff)
downloadredmine-358e3194d79b9e4503edd48d2179b9f8f2920cd3.tar.gz
redmine-358e3194d79b9e4503edd48d2179b9f8f2920cd3.zip
Refactor: Move recipients method into acts_as_event
acts_as_event should be the standard interface to Redmine events, like mail notifications, so having a standard recipients implementation there makes sense. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3358 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb7
1 files changed, 0 insertions, 7 deletions
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