class Allocation::Collection

Overview

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

Defined in:

bitte_ci/model.cr

Instance Method Summary

Instance Method Detail

def with_job(fetch_columns = false, &block : Job::Collection -> ) : self #

def with_job(fetch_columns = false) : self #

def with_outputs(fetch_columns = false, &block : Output::Collection -> ) : self #

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


def with_outputs(fetch_columns = false) #

def with_pull_request(fetch_columns = false, &block : PullRequest::Collection -> ) : self #

def with_pull_request(fetch_columns = false) : self #