mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 00:56:41 +10:00
15 lines
426 B
Ruby
15 lines
426 B
Ruby
class Groups::NotificationSettingsController < Groups::ApplicationController
|
|
def update
|
|
notification_setting = group.notification_settings.where(user_id: current_user).find(params[:id])
|
|
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
|