diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-28 20:19:55 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-28 20:19:55 +0000 |
commit | 244e94de80751091f3ef0208dfb6b8502a6c13eb (patch) | |
tree | 81985b3bd29f2649c265ef61ee6a3b39c55c4884 /app/controllers/settings_controller.rb | |
parent | 582ed86d828bb957a7844832c627b425884d0716 (diff) | |
download | redmine-244e94de80751091f3ef0208dfb6b8502a6c13eb.tar.gz redmine-244e94de80751091f3ef0208dfb6b8502a6c13eb.zip |
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
Diffstat (limited to 'app/controllers/settings_controller.rb')
-rw-r--r-- | app/controllers/settings_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index 77e1da56b..2e904ec19 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -26,7 +26,7 @@ class SettingsController < ApplicationController end def edit - @notifiables = %w(issue_added issue_updated news_added document_added file_added message_posted wiki_content_added wiki_content_updated) + @notifiables = Redmine::Notifiable.all if request.post? && params[:settings] && params[:settings].is_a?(Hash) settings = (params[:settings] || {}).dup.symbolize_keys settings.each do |name, value| |