class Marten::Conf::GlobalSettings::MediaFiles
- Marten::Conf::GlobalSettings::MediaFiles
- Reference
- Object
Overview
Allows to configure media files-related settings.
Defined in:
marten/conf/global_settings/media_files.crInstance Method Summary
-
#root : String
Returns the absolute path where media files will be persisted.
-
#root=(dir : Path | String | Symbol | Nil)
Allows to set the absolute path where collected media fiels will be persisted.
-
#storage : Marten::Core::Storage::Base?
Returns the ID of the storage used to collect and persist media files.
-
#storage=(storage : Core::Storage::Base | Nil)
Allows to set the the storage used to collect and persist media files.
-
#url : String
Returns the base URL to use when exposing media file URLs.
-
#url=(url : String)
Allows to set the base URL to use when exposing media file URLs.
Instance Method Detail
def root=(dir : Path | String | Symbol | Nil)
#
Allows to set the absolute path where collected media fiels will be persisted.
def storage : Marten::Core::Storage::Base?
#
Returns the ID of the storage used to collect and persist media files.
def storage=(storage : Core::Storage::Base | Nil)
#
Allows to set the the storage used to collect and persist media files.