destroy notifications when marked as read

This commit is contained in:
rgarcia
2016-01-07 12:02:01 +01:00
parent b5e9113718
commit e2f419e625
12 changed files with 120 additions and 84 deletions

View File

@@ -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)