mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
8 lines
350 B
Ruby
8 lines
350 B
Ruby
class Admin::ScreenedUrlsController < Admin::AdminController
|
|
|
|
def index
|
|
screened_urls = ScreenedUrl.select("domain, sum(match_count) as match_count, max(last_match_at) as last_match_at, min(created_at) as created_at").group(:domain).order('last_match_at DESC').to_a
|
|
render_serialized(screened_urls, GroupedScreenedUrlSerializer)
|
|
end
|
|
|
|
end
|