From 05eae82cf68cb7d99893cdec12393c2a2e32407a Mon Sep 17 00:00:00 2001 From: jubilee2 Date: Mon, 5 Dec 2022 22:55:28 -0600 Subject: [PATCH] follow recommend by hound --- lib/administrate/field/has_many.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/administrate/field/has_many.rb b/lib/administrate/field/has_many.rb index e005ba3c3b..912cd3ce9f 100644 --- a/lib/administrate/field/has_many.rb +++ b/lib/administrate/field/has_many.rb @@ -46,7 +46,7 @@ def limit end def paginate? - limit.respond_to?(:nonzero?) ? limit > 0 : limit.present? + limit.respond_to?(:positive?) ? limit.positive? : limit.present? end def permitted_attribute