Skip to content

Commit

Permalink
follow recommend by hound
Browse files Browse the repository at this point in the history
  • Loading branch information
jubilee2 authored and pablobm committed Dec 13, 2022
1 parent 8e4c27d commit 05eae82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/administrate/field/has_many.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05eae82

Please sign in to comment.