Skip to content
Snippets Groups Projects

Decouple membership and notifications

Merged Dmytro Zaporozhets (DZ) requested to merge decouple-member-notification into master
3 files
+ 13
12
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -102,12 +102,7 @@ def show
@@ -102,12 +102,7 @@ def show
@membership = @project.team.find_member(current_user.id)
@membership = @project.team.find_member(current_user.id)
if @membership
if @membership
@notification_setting = current_user.notification_settings.find_or_initialize_by(source: @project)
@notification_setting = current_user.notification_settings.find_or_create_for(@project)
unless @notification_setting.persisted?
@notification_setting.set_defaults
@notification_setting.save
end
end
end
end
end
Loading