gitlabhq/app/controllers/notifications_controller.rb

14 lines
307 B
Ruby
Raw Normal View History

2013-03-27 18:04:29 +01:00
class NotificationsController < ApplicationController
layout 'profile'
def show
@notification = current_user.notification
2013-03-27 19:07:52 +01:00
@projects = current_user.authorized_projects
2013-03-27 18:04:29 +01:00
end
def update
2013-03-27 19:07:52 +01:00
current_user.notification_level = params[:notification_level]
@saved = current_user.save
2013-03-27 18:04:29 +01:00
end
end