From 5b1116e1292113820b4e8a3e265ee21ce3899386 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 30 Nov 2014 21:04:30 +0100 Subject: [PATCH] the inbox entries are not new anymore ;_; --- app/controllers/inbox_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/inbox_controller.rb b/app/controllers/inbox_controller.rb index 076e1264..8224f67f 100644 --- a/app/controllers/inbox_controller.rb +++ b/app/controllers/inbox_controller.rb @@ -3,5 +3,6 @@ class InboxController < ApplicationController def show @inbox = Inbox.where(user: current_user).order(:created_at).reverse_order + @inbox.update_all(new: false) end end