diff options
Diffstat (limited to 'app/controllers/home_controller.rb')
-rw-r--r-- | app/controllers/home_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 59cac59..6e38c41 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -2,6 +2,7 @@ class HomeController < ApplicationController skip_before_action :authenticate_user! def index - @latest_checkpoints = Checkpoint.last(5).sort_by(&:created_at).reverse + @latest_checkpoints = Checkpoint.order(:created_at).last(8).reverse + @latest_entries = PokedexEntry.order(:created_at).last(8).reverse end end |