diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-11 19:33:26 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-12 12:10:58 -0300 |
commit | ef22b76b732c2bf4ce52b8a73570ac2921f9caa4 (patch) | |
tree | 871bb03716893281710875869f726d1aca05ed63 /app/controllers | |
parent | fe58c1f13cc0758bbbd8f85b8794b458b3a72b55 (diff) | |
download | gitlab-ce-ef22b76b732c2bf4ce52b8a73570ac2921f9caa4.tar.gz |
Simplify Projects::NotificationSettingsController
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/notification_settings_controller.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/projects/notification_settings_controller.rb b/app/controllers/projects/notification_settings_controller.rb index e536725c5b1..7d81cc03c73 100644 --- a/app/controllers/projects/notification_settings_controller.rb +++ b/app/controllers/projects/notification_settings_controller.rb @@ -1,13 +1,6 @@ class Projects::NotificationSettingsController < Projects::ApplicationController before_action :authenticate_user! - def create - notification_setting = current_user.notification_settings_for(project) - saved = notification_setting.update_attributes(notification_setting_params) - - render json: { saved: saved } - end - def update notification_setting = current_user.notification_settings_for(project) saved = notification_setting.update_attributes(notification_setting_params) |