eBooru/app/logical/admin_dashboard.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

20 lines
432 B
Ruby

# frozen_string_literal: true
class AdminDashboard
def tag_aliases
TagAlias.where(status: "pending").order("id desc").limit(100)
end
def tag_implications
TagImplication.where(status: "pending").order("id desc").limit(100)
end
def update_requests
BulkUpdateRequest.where(status: "pending").order("id desc")
end
def forum_topics
ForumTopic.search(category_id: 1).order("id desc").limit(20)
end
end