lib/active_storage/engine.rb in activestorage-7.1.5 vs lib/active_storage/engine.rb in activestorage-7.2.0.beta1
- old
+ new
@@ -63,10 +63,12 @@
application/mathml+xml
text/cache-manifest
)
config.active_storage.content_types_allowed_inline = %w(
+ image/webp
+ image/avif
image/png
image/gif
image/jpeg
image/tiff
image/bmp
@@ -108,9 +110,10 @@
)
ActiveStorage.variable_content_types = app.config.active_storage.variable_content_types || []
ActiveStorage.web_image_content_types = app.config.active_storage.web_image_content_types || []
ActiveStorage.content_types_to_serve_as_binary = app.config.active_storage.content_types_to_serve_as_binary || []
+ ActiveStorage.touch_attachment_records = app.config.active_storage.touch_attachment_records != false
ActiveStorage.service_urls_expire_in = app.config.active_storage.service_urls_expire_in || 5.minutes
ActiveStorage.urls_expire_in = app.config.active_storage.urls_expire_in
ActiveStorage.content_types_allowed_inline = app.config.active_storage.content_types_allowed_inline || []
ActiveStorage.binary_content_type = app.config.active_storage.binary_content_type || "application/octet-stream"
ActiveStorage.video_preview_arguments = app.config.active_storage.video_preview_arguments || "-y -vframes 1 -f image2"