module Marten::Handlers::RecordListing::ClassMethods

Defined in:

marten/handlers/concerns/record_listing.cr

Instance Method Summary

Instance Method Detail

def ordering(fields : Array(String | Symbol)) #

Allows to configure the list of fields to use to order the records.


[View source]
def ordering(*fields : String | Symbol) #

Allows to configure the list of fields to use to order the records.


[View source]
def page_number_param(param : String | Symbol) #

Allows to configure the name of the page number parameter.


[View source]
def page_size(page_size : Int32 | Nil) #

Allows to configure the page size to use if records should be paginated.

If the specified page size is nil, it means that records won't be paginated.


[View source]