This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user