class Language::Collection

Overview

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

Defined in:

models/language.cr

Instance Method Summary

Instance Method Detail

def with_repositories(&block : Repository::Collection -> ) : self #

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


def with_repositories #