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
Validates the label of the application config.
Raises Marten::Apps::Errors::InvalidAppConfig if the label is invalid.
Instance methods
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.