instance method metadata

Ruby on Rails edge

Since edge

Returns a Hash of metadata extracted from the associated file. ActiveStorage also stores whether the file has been identified and analyzed:

“‘ ActiveStorage::Blob.first.metadata

> {“identified” => true, “width” => 763, “height” => 588, “analyzed” => true}

“‘

Source
# File activestorage/app/models/active_storage/blob.rb, line 200
  

Defined in activestorage/app/models/active_storage/blob.rb line 200 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Blob

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close