Skip to content

Commit

Permalink
Limiting resultset on index action.
Browse files Browse the repository at this point in the history
  • Loading branch information
futurechimp committed Jun 8, 2011
1 parent 7e3d985 commit 15d87a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/home.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# end

get :index, :map => "/" do
@feed_items = FeedItem.order_by([:date_published, :desc])
@feed_items = FeedItem.order_by([:date_published, :desc]).limit(60)
erb :"home/index"
end

Expand Down

0 comments on commit 15d87a0

Please sign in to comment.