|
@@ -36,7 +36,7 @@ class Post < ApplicationRecord |
|
|
ids = sorted.map(&:first) |
|
|
ids = sorted.map(&:first) |
|
|
ids = ids.first(limit) if limit |
|
|
ids = ids.first(limit) if limit |
|
|
|
|
|
|
|
|
Post.where(id: ids) |
|
|
|
|
|
|
|
|
Post.where(id: ids).index_by(&:id).values_at(*ids) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def resized_thumbnail! |
|
|
def resized_thumbnail! |
|
|