2
0

Use async_count in more view locations (#32086)

This commit is contained in:
Matt Jankowski
2024-10-04 08:29:43 -04:00
committed by GitHub
parent 77f5b127fa
commit 4fe7f213a6
8 changed files with 8 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ class Admin::AnnouncementsController < Admin::BaseController
def index
authorize :announcement, :index?
@published_announcements_count = Announcement.published.async_count
end
def new