module Marten::Handlers::RecordRetrieving
Overview
Provides the ability to retrieve a specific model record.
Direct including types
Defined in:
marten/handlers/concerns/record_retrieving.crMacro Summary
-
model(model_klass)
Allows to configure the model class that should be used to retrieve the record.
-
queryset(queryset)
Allows to configure the query set that should be used to retrieve the record.
Instance Method Summary
-
#model
Returns the model used to retrieve the record.
-
#queryset
Returns the queryset used to retrieve the record displayed by the handler.
-
#record
Returns the record that will be exposed by the handler.
Macro Detail
macro model(model_klass)
#
Allows to configure the model class that should be used to retrieve the record.
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.