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

12 lines
251 B
Ruby

# frozen_string_literal: true
class PopularController < ApplicationController
respond_to :html, :json
def index
@post_set = PostSets::Popular.new(params[:date], params[:scale])
@posts = @post_set.posts
respond_with(@posts)
end
end