Skip to content
Extraits de code Groupes Projets
Valider c22894ff rédigé par maxwell's avatar maxwell
Parcourir les fichiers

limit number of notifications in notifications#index

parent 6d63a5d3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -18,7 +18,7 @@ class NotificationsController < ApplicationController ...@@ -18,7 +18,7 @@ class NotificationsController < ApplicationController
end end
def index def index
@notifications = Notification.for(current_user) @notifications = Notification.for(current_user).limit(25)
@group_days = @notifications.group_by{|note| note.created_at.strftime("%B %d") } @group_days = @notifications.group_by{|note| note.created_at.strftime("%B %d") }
respond_with @notifications respond_with @notifications
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter