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