0
0
Fork 0

Fix IP blocks not having a unique index (#19456)

This commit is contained in:
Eugen Rochko 2022-10-25 21:43:44 +02:00 committed by GitHub
parent 6f01111863
commit 487d81fb92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 2 deletions

View file

@ -5,7 +5,7 @@ module Admin
def index
authorize :ip_block, :index?
@ip_blocks = IpBlock.page(params[:page])
@ip_blocks = IpBlock.order(ip: :asc).page(params[:page])
@form = Form::IpBlockBatch.new
end