Fix few bugs related to recent notifications refactoring
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
71e7b39843
commit
f8f68d6b8c
|
@ -1,7 +1,6 @@
|
||||||
class Profiles::NotificationsController < Profiles::ApplicationController
|
class Profiles::NotificationsController < Profiles::ApplicationController
|
||||||
def show
|
def show
|
||||||
@user = current_user
|
@user = current_user
|
||||||
@notification = current_user.notification
|
|
||||||
@group_notifications = current_user.notification_settings.for_groups
|
@group_notifications = current_user.notification_settings.for_groups
|
||||||
@project_notifications = current_user.notification_settings.for_projects
|
@project_notifications = current_user.notification_settings.for_projects
|
||||||
end
|
end
|
||||||
|
|
|
@ -163,7 +163,7 @@ class Member < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_notification_setting
|
def create_notification_setting
|
||||||
user.notification_setting.find_or_create_for(source)
|
user.notification_settings.find_or_create_for(source)
|
||||||
end
|
end
|
||||||
|
|
||||||
def notification_setting
|
def notification_setting
|
||||||
|
|
Loading…
Reference in New Issue