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.crMacro 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 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 Detail
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.
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.
Instance Method Detail
Returns a page resulting from the pagination of the queryset for the current page.