Skip to content

Commit

Permalink
limit entry index view to last 100
Browse files Browse the repository at this point in the history
  • Loading branch information
mbulat committed Jul 28, 2015
1 parent 4e4d7bf commit b8b45f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/plutus/entries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class EntriesController < Plutus::ApplicationController
# GET /entries.xml
# GET /entries.json
def index
@entries = Entry.all
@entries = Entry.limit(100).order('date DESC')

respond_to do |format|
format.html # index.html.erb
Expand Down

0 comments on commit b8b45f1

Please sign in to comment.