質問編集履歴
1
不足を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
```ruby
|
25
25
|
children_with_parent = Parent.all.map do |parent|
|
26
|
-
Child.where(parent: parent).order(created_at: :desc)
|
26
|
+
Child.where(parent: parent).order(created_at: :desc).limit(30)
|
27
27
|
end
|
28
28
|
```
|
29
29
|
|