From c22894ff2acdc7d15223f4e2c5042dfee99fb8a6 Mon Sep 17 00:00:00 2001 From: maxwell <maxwell@joindiaspora.com> Date: Sun, 19 Dec 2010 19:05:45 -0800 Subject: [PATCH] limit number of notifications in notifications#index --- app/controllers/notifications_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index ff920e0467..2be753d144 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -18,7 +18,7 @@ class NotificationsController < ApplicationController end 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") } respond_with @notifications end -- GitLab