lib/lockbox/utils.rb in lockbox-0.5.0 vs lib/lockbox/utils.rb in lockbox-0.6.0

- old
+ new

@@ -91,11 +91,10 @@ else raise ArgumentError, "Could not find or build blob: expected attachable, got #{attachable.inspect}" end # don't analyze encrypted data - metadata = {"analyzed" => true} - metadata["encrypted"] = true if options[:migrating] + metadata = {"analyzed" => true, "encrypted" => true} attachable[:metadata] = (attachable[:metadata] || {}).merge(metadata) end # set content type based on unencrypted data # keep synced with ActiveStorage::Blob#extract_content_type