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