class Marten::Apps::MainConfig
- Marten::Apps::MainConfig
- Marten::Apps::Config
- Reference
- Object
Overview
Main application config class.
Marten automatically defines a "main" application config that corresponds to the standard src/
folder. Models,
migrations, assets, or locales that live in this folder will be automatically known by Marten (like if they were
part of any other installed application). The rationale behind this is that this allows simple projects to be
started without requiring the definition of applications upfront, which is ideal for simple projects or proofs of
concept.
Defined in:
marten/apps/main_config.crConstant Summary
-
RESERVED_LABEL =
"main"
Instance Method Summary
-
#main?
Returns
true
in order to indicate that this is the main application.
Instance methods inherited from class Marten::Apps::Config
==(other : self)
==,
assets_finder
assets_finder,
label(*args, **options)label(*args, **options, &) label, main? main?, migrations_path migrations_path, models : Array(Marten::DB::Model.class) models, register_model(model : DB::Model.class) register_model, setup setup, templates_loader templates_loader, translations_loader translations_loader
Constructor methods inherited from class Marten::Apps::Config
new
new
Class methods inherited from class Marten::Apps::Config
label(label : String | Symbol)label : String label, validate_label(label : String | Symbol) validate_label