discourse/app/controllers/admin/screened_ip_addresses_controller.rb

8 lines
244 B
Ruby

class Admin::ScreenedIpAddressesController < Admin::AdminController
def index
screened_emails = ScreenedIpAddress.limit(200).order('last_match_at desc').to_a
render_serialized(screened_emails, ScreenedIpAddressSerializer)
end
end