summaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r--app/controllers/admin_controller.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 9e6a22822..e002f3a27 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -45,17 +45,6 @@ class AdminController < ApplicationController
render :action => "projects", :layout => false if request.xhr?
end
-
- def mail_options
- @notifiables = %w(issue_added issue_updated news_added document_added file_added message_posted)
- if request.post?
- settings = (params[:settings] || {}).dup.symbolize_keys
- settings[:notified_events] ||= []
- settings.each { |name, value| Setting[name] = value }
- flash[:notice] = l(:notice_successful_update)
- redirect_to :controller => 'admin', :action => 'mail_options'
- end
- end
# Loads the default configuration
# (roles, trackers, statuses, workflow, enumerations)
@@ -82,7 +71,7 @@ class AdminController < ApplicationController
flash[:error] = l(:notice_email_error, e.message)
end
ActionMailer::Base.raise_delivery_errors = raise_delivery_errors
- redirect_to :action => 'mail_options'
+ redirect_to :controller => 'settings', :action => 'edit', :tab => 'notifications'
end
def info