instance method byte_size

Ruby on Rails edge

Since edge

Signature

byte_size()

Returns the combined size in bytes of all attached blobs.

document.images.byte_size # => 2048
Source
# File activestorage/lib/active_storage/attached/many.rb, line 83
    def byte_size
      blobs.pluck(:byte_size).sum
    end

Defined in activestorage/lib/active_storage/attached/many.rb line 83 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Attached::Many

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