Marten::Apps::Config
Inherits Marten::Apps::Association < Reference < Object
Base application config class.
This class can be subclassed on a per-application basis in order to configure the considered application. Things like the application label can be configured this way. Moreover, app config classes are also used in order to retrieve various abstractions associated with applications (such as models for example).
Constructors
Class methods
Instance methods
Returns the build-time directories containing the runtime artifacts of the application.
These correspond to the application's locales and templates directories, whose files must be shipped
alongside compiled applications. The returned directories are not guaranteed to exist. Applications with
custom layouts can override this method.
Returns the assets finder of the application.
If the application doesn't have a dedicated assets directory, nil is returned.
Allows to perform additional setup operations for a given application.
Each application class can override this method in order to perform additional initializations and setup operations if needed. This method will be called during the Marten setup process when all the applications are known and initialized.
Returns the templates loader of the application.
If the application doesn't have a dedicated templates directory, nil is returned.
Returns the translations loader of the application.
If the application doesn't define translations in a dedicated directory, nil is returned.