mirror of
https://github.com/redmine/redmine.git
synced 2026-03-25 22:00:43 +01:00
Refactor the hardcoded event actions (notifiables) to use a class
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4220 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
19
lib/redmine/notifiable.rb
Normal file
19
lib/redmine/notifiable.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
module Redmine
|
||||
class Notifiable
|
||||
CoreNotifications = [
|
||||
'issue_added',
|
||||
'issue_updated',
|
||||
'news_added',
|
||||
'document_added',
|
||||
'file_added',
|
||||
'message_posted',
|
||||
'wiki_content_added',
|
||||
'wiki_content_updated'
|
||||
]
|
||||
|
||||
# TODO: Plugin API for adding a new notification?
|
||||
def self.all
|
||||
CoreNotifications
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user