diff --git a/app/controllers/cards/readings_controller.rb b/app/controllers/cards/readings_controller.rb index 669d959d8..dbb379b15 100644 --- a/app/controllers/cards/readings_controller.rb +++ b/app/controllers/cards/readings_controller.rb @@ -2,12 +2,7 @@ class Cards::ReadingsController < ApplicationController include CardScoped def create - mark_card_notifications_read + Current.user.notifications.unread.where(card: @card).read_all @notifications = Current.user.notifications.unread.ordered.limit(20) end - - private - def mark_card_notifications_read - Current.user.notifications.unread.where(card: @card).read_all - end end