Prepare UI for notification settings

This commit is contained in:
Dmitriy Zaporozhets 2013-03-27 20:07:52 +02:00
parent d55ade1686
commit ba59912072
8 changed files with 81 additions and 20 deletions

View file

@ -3,9 +3,11 @@ class NotificationsController < ApplicationController
def show
@notification = current_user.notification
@projects = current_user.authorized_projects
end
def update
@notification = current_user.notification
current_user.notification_level = params[:notification_level]
@saved = current_user.save
end
end