Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in Active Storage: custom_metadatata -> custom_metadata #43753

Merged
merged 1 commit into from Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion activestorage/app/models/active_storage/blob.rb
Expand Up @@ -398,7 +398,7 @@ def service_metadata
if forcibly_serve_as_binary?
{ content_type: ActiveStorage.binary_content_type, disposition: :attachment, filename: filename, custom_metadata: custom_metadata }
elsif !allowed_inline?
{ content_type: content_type, disposition: :attachment, filename: filename, custom_metadatata: custom_metadata }
{ content_type: content_type, disposition: :attachment, filename: filename, custom_metadata: custom_metadata }
else
{ content_type: content_type, custom_metadata: custom_metadata }
end
Expand Down
2 changes: 1 addition & 1 deletion activestorage/test/models/blob_test.rb
Expand Up @@ -295,7 +295,7 @@ class ActiveStorage::BlobTest < ActiveSupport::TestCase
content_type: "application/octet-stream",
disposition: :attachment,
filename: blob.filename,
custom_metadatata: { "test" => true }
custom_metadata: { "test" => true }
}
]

Expand Down