summaryrefslogtreecommitdiff
path: root/app/controllers/projects/notification_settings_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/notification_settings_controller.rb')
-rw-r--r--app/controllers/projects/notification_settings_controller.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/controllers/projects/notification_settings_controller.rb b/app/controllers/projects/notification_settings_controller.rb
deleted file mode 100644
index 05fe5accc65..00000000000
--- a/app/controllers/projects/notification_settings_controller.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-class Projects::NotificationSettingsController < Projects::ApplicationController
- before_action :authenticate_user!
-
- def update
- @notification_setting = current_user.notification_settings_for(project)
- saved = @notification_setting.update_attributes(notification_setting_params)
-
- render json: {
- html: view_to_html_string("projects/buttons/_notifications", locals: { project: @project, notification_setting: @notification_setting }),
- saved: saved
- }
- end
-
- private
-
- def notification_setting_params
- allowed_fields = NotificationSetting::EMAIL_EVENTS.dup
- allowed_fields << :level
- params.require(:notification_setting).permit(allowed_fields)
- end
-end