discourse/app/controllers/admin/screened_urls_controller.rb

Failed to ignore revisions in .git-blame-ignore-revs.

11 lines
381 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-08-15 10:48:30 -04:00
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)
2013-08-15 10:48:30 -04:00
end
end