summaryrefslogtreecommitdiff
path: root/app/controllers/groups
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-06-14 15:36:36 -0300
committerFelipe Artur <felipefac@gmail.com>2016-06-16 23:34:21 -0300
commitf82ab42d0534950c1ceb458e0152f329df80ae9d (patch)
treefbb3d51a8d2c899eb5037176ff3c247b09b68793 /app/controllers/groups
parent5c45d5933faa0cc27e1b465322067bd2861b3e47 (diff)
downloadgitlab-ce-f82ab42d0534950c1ceb458e0152f329df80ae9d.tar.gz
Re-use notifications dropdown on user profile
Diffstat (limited to 'app/controllers/groups')
-rw-r--r--app/controllers/groups/notification_settings_controller.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/controllers/groups/notification_settings_controller.rb b/app/controllers/groups/notification_settings_controller.rb
deleted file mode 100644
index de13b16ccf2..00000000000
--- a/app/controllers/groups/notification_settings_controller.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-class Groups::NotificationSettingsController < Groups::ApplicationController
- before_action :authenticate_user!
-
- def update
- notification_setting = current_user.notification_settings_for(group)
- saved = notification_setting.update_attributes(notification_setting_params)
-
- render json: { saved: saved }
- end
-
- private
-
- def notification_setting_params
- params.require(:notification_setting).permit(:level)
- end
-end