From 5cfab54eea51507fc7e30b021abd995275dd3a17 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 27 Feb 2023 20:48:46 -0800 Subject: [PATCH] make pages a little faster during demos --- app/controllers/basil_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/basil_controller.rb b/app/controllers/basil_controller.rb index a5b2a779..56d996e7 100644 --- a/app/controllers/basil_controller.rb +++ b/app/controllers/basil_controller.rb @@ -32,7 +32,7 @@ class BasilController < ApplicationController @age_value = Attribute.find_by(attribute_field_id: @age_field.id, entity: @character).try(:value) end - @commissions = BasilCommission.where(entity_type: 'Character', entity_id: @character.id).order('id DESC') + @commissions = BasilCommission.where(entity_type: 'Character', entity_id: @character.id).order('id DESC').limit(20) @can_request_another = @commissions.all? { |c| c.complete? } end