class method
self.filter_metadata
Ruby on Rails 7.2.3.2
Since v7.2.3.2 Private — implementation detail, not part of the public APISignature
self.filter_metadata(metadata)
No documentation comment.
Parameters
-
metadatareq
Source
# File activestorage/app/models/active_storage/blob.rb, line 169
def filter_metadata(metadata)
if metadata.is_a?(Hash)
metadata.without(*PROTECTED_METADATA)
else
metadata
end
end
Defined in activestorage/app/models/active_storage/blob.rb line 169
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob