mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 13:49:54 -04:00
Merge pull request #2994 from techAPJ/patch-5
sort screened IPs by match_count
This commit is contained in:
commit
4f377b28e8
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ class Admin::ScreenedIpAddressesController < Admin::AdminController
|
||||||
before_filter :fetch_screened_ip_address, only: [:update, :destroy]
|
before_filter :fetch_screened_ip_address, only: [:update, :destroy]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
screened_ip_addresses = ScreenedIpAddress.limit(200).order('id desc').to_a
|
screened_ip_addresses = ScreenedIpAddress.limit(200).order('match_count desc').to_a
|
||||||
render_serialized(screened_ip_addresses, ScreenedIpAddressSerializer)
|
render_serialized(screened_ip_addresses, ScreenedIpAddressSerializer)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue