Display only 10 last activities. Refs #265

This commit is contained in:
Pavel Chipiga 2012-03-12 00:47:22 +02:00
parent 4b6b44d968
commit 3e344f90ad
1 changed files with 1 additions and 1 deletions

View File

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