Commit f8f68d6b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix few bugs related to recent notifications refactoring

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 71e7b398
class Profiles::NotificationsController < Profiles::ApplicationController
def show
@user = current_user
@notification = current_user.notification
@group_notifications = current_user.notification_settings.for_groups
@project_notifications = current_user.notification_settings.for_projects
end
......
......@@ -163,7 +163,7 @@ class Member < ActiveRecord::Base
end
def create_notification_setting
user.notification_setting.find_or_create_for(source)
user.notification_settings.find_or_create_for(source)
end
def notification_setting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment