limit number of notifications in notifications#index
This commit is contained in:
parent
6d63a5d3c5
commit
c22894ff2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue