summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-10 19:07:23 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-10 19:07:23 -0600
commit6a9c7e493a309670e2dba433331ed75a374aaf39 (patch)
treea533cd139040dd9fdf18b81d279464e29a7ac016 /app
parente7c54136f8bba9951fe8e538c91463e7eee09d83 (diff)
Añade gema de paginación
Diffstat (limited to 'app')
-rw-r--r--app/models/company.rb2
1 files changed, 2 insertions, 0 deletions
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