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

Instance Method Summary

Macro Summary

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]

Macro Detail

macro model(model_klass) #

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


[View source]