Other files ignored by Codecov
lib/notifications/base.rb
was deleted.
3 | 3 | def index |
|
4 | 4 | @notifications = notifications.includes(:actor).order("id desc").page(params[:page]) |
|
5 | 5 | ||
6 | - | unread_ids = @notifications.reject(&:read?).select(&:id) |
|
6 | + | unread_ids = @notifications.unread.ids |
|
7 | 7 | Notification.read!(current_user, unread_ids) |
|
8 | 8 | ||
9 | 9 | @notification_groups = @notifications.group_by { |note| note.created_at.to_date } |