limit number of notifications in notifications#index

This commit is contained in:
maxwell 2010-12-19 19:05:45 -08:00
parent 6d63a5d3c5
commit c22894ff2a

View file

@ -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