Mercurial > hg > soundsoftware-site
comparison .svn/pristine/a9/a9a2a1af33cdbcb28377b68b0bf19fba1a6b64eb.svn-base @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
1 module Redmine | |
2 class Notifiable < Struct.new(:name, :parent) | |
3 | |
4 def to_s | |
5 name | |
6 end | |
7 | |
8 # TODO: Plugin API for adding a new notification? | |
9 def self.all | |
10 notifications = [] | |
11 notifications << Notifiable.new('issue_added') | |
12 notifications << Notifiable.new('issue_updated') | |
13 notifications << Notifiable.new('issue_note_added', 'issue_updated') | |
14 notifications << Notifiable.new('issue_status_updated', 'issue_updated') | |
15 notifications << Notifiable.new('issue_priority_updated', 'issue_updated') | |
16 notifications << Notifiable.new('news_added') | |
17 notifications << Notifiable.new('news_comment_added') | |
18 notifications << Notifiable.new('document_added') | |
19 notifications << Notifiable.new('file_added') | |
20 notifications << Notifiable.new('message_posted') | |
21 notifications << Notifiable.new('wiki_content_added') | |
22 notifications << Notifiable.new('wiki_content_updated') | |
23 notifications | |
24 end | |
25 end | |
26 end |