module Marten::Handlers::RecordRetrieving

Overview

Provides the ability to retrieve a specific model record.

Direct including types

Defined in:

marten/handlers/concerns/record_retrieving.cr

Macro Summary

Instance Method Summary

Macro Detail

macro model(model_klass) #

Allows to configure the model class that should be used to retrieve the record.


[View source]
macro queryset(queryset) #

Allows to configure the query set that should be used to retrieve the record.

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


[View source]

Instance Method Detail

def model #

Returns the model used to retrieve the record.


[View source]
def queryset #

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


[View source]
def record #

Returns the record that will be exposed by the handler.


[View source]