lib/active_storage/engine.rb in activestorage-5.2.1 vs lib/active_storage/engine.rb in activestorage-5.2.1.1

- old
+ new

@@ -35,12 +35,24 @@ application/postscript application/x-shockwave-flash text/xml application/xml application/xhtml+xml + application/mathml+xml + text/cache-manifest ) + config.active_storage.content_types_allowed_inline = %w( + image/png + image/gif + image/jpg + image/jpeg + image/vnd.adobe.photoshop + image/vnd.microsoft.icon + application/pdf + ) + config.eager_load_namespaces << ActiveStorage initializer "active_storage.configs" do config.after_initialize do |app| ActiveStorage.logger = app.config.active_storage.logger || Rails.logger @@ -49,9 +61,11 @@ ActiveStorage.analyzers = app.config.active_storage.analyzers || [] ActiveStorage.paths = app.config.active_storage.paths || {} ActiveStorage.variable_content_types = app.config.active_storage.variable_content_types || [] ActiveStorage.content_types_to_serve_as_binary = app.config.active_storage.content_types_to_serve_as_binary || [] + 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" end end initializer "active_storage.attached" do require "active_storage/attached"