Display only 10 last activities. Refs #265
This commit is contained in:
parent
4b6b44d968
commit
3e344f90ad
|
@ -2,6 +2,6 @@ class ActivityFeedsController < ApplicationController
|
|||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@activity_feeds = current_user.activity_feeds.order('created_at DESC')
|
||||
@activity_feeds = current_user.activity_feeds.order('created_at DESC').limit(10)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue