Skip to content

Commit b30148a

Browse files
committed
Typo in Active Storage: custom_metadatata -> custom_metadata
Introduced in rails#43294
1 parent 30519c4 commit b30148a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

activestorage/app/models/active_storage/blob.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def service_metadata
398398
if forcibly_serve_as_binary?
399399
{ content_type: ActiveStorage.binary_content_type, disposition: :attachment, filename: filename, custom_metadata: custom_metadata }
400400
elsif !allowed_inline?
401-
{ content_type: content_type, disposition: :attachment, filename: filename, custom_metadatata: custom_metadata }
401+
{ content_type: content_type, disposition: :attachment, filename: filename, custom_metadata: custom_metadata }
402402
else
403403
{ content_type: content_type, custom_metadata: custom_metadata }
404404
end

activestorage/test/models/blob_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class ActiveStorage::BlobTest < ActiveSupport::TestCase
295295
content_type: "application/octet-stream",
296296
disposition: :attachment,
297297
filename: blob.filename,
298-
custom_metadatata: { "test" => true }
298+
custom_metadata: { "test" => true }
299299
}
300300
]
301301

0 commit comments

Comments
 (0)