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.crInstance Method Summary
-
#model
Returns the model used to list the records.
-
#paginate_queryset
Returns a page resulting from the pagination of the queryset for the current page.
-
#queryset
Returns the queryset used to retrieve the records displayed by the handler.
Macro Summary
-
model(model_klass)
Allows to configure the model class that should be used to retrieve the list of records.
-
queryset(queryset)
Allows to configure the query set that should be used to retrieve the list of records.
Instance Method Detail
def paginate_queryset
#
Returns a page resulting from the pagination of the queryset for the current page.
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.