Add/configure ActiveStorage

This commit is contained in:
Râu Cao
2023-09-06 12:14:28 +02:00
parent a91ee2bd0a
commit 86f85a90f4
10 changed files with 112 additions and 6 deletions

View File

@@ -70,4 +70,7 @@ Rails.application.configure do
# Allow requests from any IP
config.web_console.whiny_requests = false
# Store attachments on the local disk (in ./storage)
config.active_storage.service = :local
end

View File

@@ -110,6 +110,10 @@ Rails.application.configure do
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
config.action_mailer.raise_delivery_errors = true
# TODO make configurable
# Store attachments in S3-compatible back-end
config.active_storage.service = :local
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation cannot be found).
config.i18n.fallbacks = true

View File

@@ -51,4 +51,7 @@ Rails.application.configure do
}
config.active_job.queue_adapter = :test
# Store attachments on the local disk (in ./tmp)
config.active_storage.service = :test
end