Skip to content

Commit

Permalink
Update genomes_controller.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Jul 24, 2024
1 parent 102bf5a commit d941885
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/genomes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class GenomesController < ApplicationController

# GET /genomes or /genomes.json
def index
@genomes = Genome.all.paginate(page: params[:page], per_page: 30)
@genomes = Genome.all.order(created_at: :desc)
.paginate(page: params[:page], per_page: 30)
@crumbs = ['Genomes']
end

Expand Down

0 comments on commit d941885

Please sign in to comment.