module Marten::Handlers::RecordListing::ClassMethods
Defined in:
marten/handlers/concerns/record_listing.crInstance Method Summary
-
#ordering(fields : Array(String | Symbol))
Allows to configure the list of fields to use to order the records.
-
#ordering(*fields : String | Symbol)
Allows to configure the list of fields to use to order the records.
-
#page_number_param(param : String | Symbol)
Allows to configure the name of the page number parameter.
-
#page_size(page_size : Int32 | Nil)
Allows to configure the page size to use if records should be paginated.
Instance Method Detail
Allows to configure the list of fields to use to order the records.
def ordering(*fields : String | Symbol)
#
Allows to configure the list of fields to use to order the records.
def page_number_param(param : String | Symbol)
#
Allows to configure the name of the page number parameter.
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.