Files
fizzy/app/controllers/notifications_controller.rb
T
Jorge Manrubia 4527dcbeda Remove unnecessary filtering code
After removing collections from the filtering menu, there was quite a good cleanup here pending
2025-10-03 10:56:34 +02:00

12 lines
387 B
Ruby

class NotificationsController < ApplicationController
def index
@unread = Current.user.notifications.unread.ordered unless current_page_param
set_page_and_extract_portion_from Current.user.notifications.read.ordered
respond_to do |format|
format.turbo_stream if current_page_param # Allows read-all action to side step pagination
format.html
end
end
end