質問編集履歴
1
不足を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
children_with_parent = Parent.all.map do |parent|
|
50
50
|
|
51
|
-
Child.where(parent: parent).order(created_at: :desc)
|
51
|
+
Child.where(parent: parent).order(created_at: :desc).limit(30)
|
52
52
|
|
53
53
|
end
|
54
54
|
|