class User::Collection

Overview

Addition of the method for eager loading and N+1 avoidance.

Defined in:

models/user.cr:2
models/user.cr:24

Instance Method Summary

Instance Method Detail

def published #

[View source]
def with_repositories(fetch_columns = false, &block : Repository::Collection -> ) : self #

Eager load the has many relation repositories. Use it to avoid N+1 queries.


def with_repositories(fetch_columns = false) #