This commit is contained in:
2025-08-01 01:42:59 +09:00
parent 4b8cb47701
commit 1dcad24a27
+1 -1
View File
@@ -36,7 +36,7 @@ class Post < ApplicationRecord
ids = sorted.map(&:first)
ids = ids.first(limit) if limit
Post.where(id: ids)
Post.where(id: ids).index_by(&:id).values_at(*ids)
end
def resized_thumbnail!