ActiveStorage configuration
This commit is contained in:
parent
ce6fac9764
commit
d123a8c69d
|
@ -0,0 +1 @@
|
||||||
|
Rails.application.config.active_storage.resolve_model_to_route = :rails_storage_proxy
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
# When assigning to a collection of attachments declared via `has_many_attached`, replace existing
|
# When assigning to a collection of attachments declared via `has_many_attached`, replace existing
|
||||||
# attachments instead of appending. Use #attach to add new attachments without replacing existing ones.
|
# attachments instead of appending. Use #attach to add new attachments without replacing existing ones.
|
||||||
# Rails.application.config.active_storage.replace_on_assign_to_many = true
|
Rails.application.config.active_storage.replace_on_assign_to_many = true
|
||||||
|
|
||||||
# Use ActionMailer::MailDeliveryJob for sending parameterized and normal mail.
|
# Use ActionMailer::MailDeliveryJob for sending parameterized and normal mail.
|
||||||
#
|
#
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# Rails.application.config.active_record.has_many_inversing = true
|
# Rails.application.config.active_record.has_many_inversing = true
|
||||||
|
|
||||||
# Track Active Storage variants in the database.
|
# Track Active Storage variants in the database.
|
||||||
# Rails.application.config.active_storage.track_variants = true
|
Rails.application.config.active_storage.track_variants = true
|
||||||
|
|
||||||
# Apply random variation to the delay when retrying failed jobs.
|
# Apply random variation to the delay when retrying failed jobs.
|
||||||
# Rails.application.config.active_job.retry_jitter = 0.15
|
# Rails.application.config.active_job.retry_jitter = 0.15
|
||||||
|
@ -48,10 +48,10 @@
|
||||||
# Rails.application.config.action_view.form_with_generates_remote_forms = false
|
# Rails.application.config.action_view.form_with_generates_remote_forms = false
|
||||||
|
|
||||||
# Set the default queue name for the analysis job to the queue adapter default.
|
# Set the default queue name for the analysis job to the queue adapter default.
|
||||||
# Rails.application.config.active_storage.queues.analysis = nil
|
Rails.application.config.active_storage.queues.analysis = nil
|
||||||
|
|
||||||
# Set the default queue name for the purge job to the queue adapter default.
|
# Set the default queue name for the purge job to the queue adapter default.
|
||||||
# Rails.application.config.active_storage.queues.purge = nil
|
Rails.application.config.active_storage.queues.purge = nil
|
||||||
|
|
||||||
# Set the default queue name for the incineration job to the queue adapter default.
|
# Set the default queue name for the incineration job to the queue adapter default.
|
||||||
# Rails.application.config.action_mailbox.queues.incineration = nil
|
# Rails.application.config.action_mailbox.queues.incineration = nil
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
# The ActiveStorage video previewer will now use scene change detection to generate
|
# The ActiveStorage video previewer will now use scene change detection to generate
|
||||||
# better preview images (rather than the previous default of using the first frame
|
# better preview images (rather than the previous default of using the first frame
|
||||||
# of the video).
|
# of the video).
|
||||||
# Rails.application.config.active_storage.video_preview_arguments =
|
Rails.application.config.active_storage.video_preview_arguments =
|
||||||
# "-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1' -frames:v 1 -f image2"
|
"-vf 'select=eq(n\\,0)+eq(key\\,1)+gt(scene\\,0.015),loop=loop=-1:size=2,trim=start_frame=1' -frames:v 1 -f image2"
|
||||||
|
|
||||||
# Automatically infer `inverse_of` for associations with a scope.
|
# Automatically infer `inverse_of` for associations with a scope.
|
||||||
# Rails.application.config.active_record.automatic_scope_inversing = true
|
# Rails.application.config.active_record.automatic_scope_inversing = true
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
# generate variants to use image processing macros and ruby-vips
|
# generate variants to use image processing macros and ruby-vips
|
||||||
# operations. See the upgrading guide for detail on the changes required.
|
# operations. See the upgrading guide for detail on the changes required.
|
||||||
# The `:mini_magick` option is not deprecated; it's fine to keep using it.
|
# The `:mini_magick` option is not deprecated; it's fine to keep using it.
|
||||||
# Rails.application.config.active_storage.variant_processor = :vips
|
Rails.application.config.active_storage.variant_processor = :vips
|
||||||
|
|
||||||
# Enable parameter wrapping for JSON.
|
# Enable parameter wrapping for JSON.
|
||||||
# Previously this was set in an initializer. It's fine to keep using that initializer if you've customized it.
|
# Previously this was set in an initializer. It's fine to keep using that initializer if you've customized it.
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
# Active Storage `has_many_attached` relationships will default to replacing the current collection instead of appending to it.
|
# Active Storage `has_many_attached` relationships will default to replacing the current collection instead of appending to it.
|
||||||
# Thus, to support submitting an empty collection, the `file_field` helper will render an hidden field `include_hidden` by default when `multiple_file_field_include_hidden` is set to `true`.
|
# Thus, to support submitting an empty collection, the `file_field` helper will render an hidden field `include_hidden` by default when `multiple_file_field_include_hidden` is set to `true`.
|
||||||
# See https://guides.rubyonrails.org/configuring.html#config-active-storage-multiple-file-field-include-hidden for more information.
|
# See https://guides.rubyonrails.org/configuring.html#config-active-storage-multiple-file-field-include-hidden for more information.
|
||||||
# Rails.application.config.active_storage.multiple_file_field_include_hidden = true
|
Rails.application.config.active_storage.multiple_file_field_include_hidden = true
|
||||||
|
|
||||||
# ** Please read carefully, this must be configured in config/application.rb (NOT this file) **
|
# ** Please read carefully, this must be configured in config/application.rb (NOT this file) **
|
||||||
# Disables the deprecated #to_s override in some Ruby core classes
|
# Disables the deprecated #to_s override in some Ruby core classes
|
||||||
|
|
Loading…
Reference in New Issue