mirror of
https://github.com/redmine/redmine.git
synced 2026-01-16 20:43:03 +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:
@@ -8,6 +8,7 @@ require 'redmine/core_ext'
|
||||
require 'redmine/themes'
|
||||
require 'redmine/hook'
|
||||
require 'redmine/plugin'
|
||||
require 'redmine/notifiable'
|
||||
require 'redmine/wiki_formatting'
|
||||
require 'redmine/scm/base'
|
||||
|
||||
|
||||
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