limit
このスコープに を追加するにはどうすればよいですか?
scope :with_comments, include: {comments: :user}
私はこのように使用しています:
Event.with_comments.find(params[:id])
limit
このスコープに を追加するにはどうすればよいですか?
scope :with_comments, include: {comments: :user}
私はこのように使用しています:
Event.with_comments.find(params[:id])