module Marten::Handlers::RecordListing

Overview

Provides the ability to retrieve a list of model records.

Direct including types

Defined in:

marten/handlers/concerns/record_listing.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def model #

Returns the model used to list the records.


[View source]
def paginate_queryset #

Returns a page resulting from the pagination of the queryset for the current page.


[View source]
def queryset #

Returns the queryset used to retrieve the records displayed by the handler.


[View source]

Macro Detail

macro model(model_klass) #

Allows to configure the model class that should be used to retrieve the list of records.

This macro should only be used in situations where the #queryset macro is not used.


[View source]
macro queryset(queryset) #

Allows to configure the query set that should be used to retrieve the list of records.

This macro should only be used in situations where the #model macro is not used.


[View source]