0
0
Fork 0

Add coverage for StatusTrend and PreviewCardTrend models, add locales class method to RankedTrend (#32688)

This commit is contained in:
Matt Jankowski 2024-10-29 11:46:32 -04:00 committed by GitHub
parent df3b954720
commit babee06794
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 64 additions and 4 deletions

View file

@ -4,7 +4,7 @@ class Admin::Trends::StatusesController < Admin::BaseController
def index
authorize [:admin, :status], :review?
@locales = StatusTrend.pluck('distinct language')
@locales = StatusTrend.locales
@statuses = filtered_statuses.page(params[:page])
@form = Trends::StatusBatch.new
end