eBooru/app/controllers/post_approvals_controller.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

11 lines
295 B
Ruby

# frozen_string_literal: true
class PostApprovalsController < ApplicationController
respond_to :html, :json
def index
@post_approvals = PostApproval.includes(:post, :user).search(search_params).paginate(params[:page], limit: params[:limit])
respond_with(@post_approvals)
end
end