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

@@ -14,6 +14,7 @@ class Notification < ActiveRecord::Base
notifiable.created_at
end
def mark_as_read!
def mark_as_read
self.destroy
end
end