Mercurial > hg > soundsoftware-site
comparison lib/redmine/notifiable.rb @ 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 | cbce1fd3b1b7 |
children |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
2 class Notifiable < Struct.new(:name, :parent) | 2 class Notifiable < Struct.new(:name, :parent) |
3 | 3 |
4 def to_s | 4 def to_s |
5 name | 5 name |
6 end | 6 end |
7 | 7 |
8 # TODO: Plugin API for adding a new notification? | 8 # TODO: Plugin API for adding a new notification? |
9 def self.all | 9 def self.all |
10 notifications = [] | 10 notifications = [] |
11 notifications << Notifiable.new('issue_added') | 11 notifications << Notifiable.new('issue_added') |
12 notifications << Notifiable.new('issue_updated') | 12 notifications << Notifiable.new('issue_updated') |