gitlabhq/app/controllers/notifications_controller.rb
2013-03-27 20:07:52 +02:00

14 lines
307 B
Ruby

class NotificationsController < ApplicationController
layout 'profile'
def show
@notification = current_user.notification
@projects = current_user.authorized_projects
end
def update
current_user.notification_level = params[:notification_level]
@saved = current_user.save
end
end