From bff3bd3edd0edb0b5f1a52a853f86101c2ac0da8 Mon Sep 17 00:00:00 2001 From: Andy Baranov Date: Thu, 13 Jun 2024 15:14:20 +0200 Subject: [PATCH] remove random --- app/controllers/works_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/works_controller.rb b/app/controllers/works_controller.rb index 6e2ef3e..29f05e4 100644 --- a/app/controllers/works_controller.rb +++ b/app/controllers/works_controller.rb @@ -3,7 +3,7 @@ class WorksController < ApplicationController def index # We always pick one work - @pagy, works = pagy(Work.all.random, items: 1) + @pagy, works = pagy(Work.all, items: 1) @work = works.sole @max_page = @pagy.pages end