destroy notifications when marked as read
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
module NotificationsHelper
|
||||
|
||||
def notification_text_for(notification)
|
||||
if notification.notifiable.reply?
|
||||
t("comments.notifications.replied_to_your_comment")
|
||||
else
|
||||
t("comments.notifications.commented_on_your_debate")
|
||||
end
|
||||
def notification_action(notification)
|
||||
notification.notifiable.reply? ? "replied_to_your_comment" : "commented_on_your_debate"
|
||||
end
|
||||
|
||||
def notifications_class_for(user)
|
||||
|
||||
Reference in New Issue
Block a user