Skip to content

Commit

Permalink
Fix behaviour of has_many pagination (#2289)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobm authored Dec 13, 2022
1 parent 6dca0a6 commit 1a87b56
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?(:zero?) ? limit.zero? : limit.present?
limit.respond_to?(:positive?) ? limit.positive? : limit.present?
end

def permitted_attribute
Expand Down

0 comments on commit 1a87b56

Please sign in to comment.