From 6a9c7e493a309670e2dba433331ed75a374aaf39 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 10 Mar 2023 19:07:23 -0600 Subject: Añade gema de paginación MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/company.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models') diff --git a/app/models/company.rb b/app/models/company.rb index 134d8e9..0fb5cd8 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -12,6 +12,8 @@ class Company < ApplicationRecord has_one_attached :logo + paginates_per 10 + def to_param short_name end -- cgit v1.2.3