Extend notifications to be marked as read and unread
This commit is contained in:
@@ -12,7 +12,7 @@ class ProposalNotificationsController < ApplicationController
|
||||
@proposal = Proposal.find(proposal_notification_params[:proposal_id])
|
||||
if @notification.save
|
||||
@proposal.users_to_notify.each do |user|
|
||||
Notification.add(user.id, @notification)
|
||||
Notification.add(user, @notification)
|
||||
end
|
||||
redirect_to @notification, notice: I18n.t("flash.actions.create.proposal_notification")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user