class Author::Collection
- Author::Collection
- Clear::Model::CollectionBase(Author)
- Reference
- Object
Overview
Addition of the method for eager loading and N+1 avoidance.
Defined in:
models/author.crInstance Method Summary
-
#with_posts(fetch_columns = false, &block : Post::Collection -> ) : self
Eager load the has many relation posts.
- #with_posts(fetch_columns = false)
Instance Method Detail
Eager load the has many relation posts. Use it to avoid N+1 queries.