質問するログイン新規登録

質問編集履歴

1

不足を追加

2017/09/08 06:08

投稿

shiroyu
shiroyu

スコア12

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