instance method
custom_metadata
Ruby on Rails edge
Since v7.0.10Signature
custom_metadata()
Returns a Hash of the custom metadata to be stored on the cloud storage provider.
Source
# File activestorage/app/models/active_storage/blob.rb, line 227
def custom_metadata
self[:metadata][:custom] || {}
end
Defined in activestorage/app/models/active_storage/blob.rb line 227
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob