instance method process_immediate_variants_from_io

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

process_immediate_variants_from_io(io)

No documentation comment.

Parameters

io req
Source
# File activestorage/app/models/active_storage/attachment.rb, line 192
    def process_immediate_variants_from_io(io)
      return unless blob.variable?

      named_variants.each do |_variant_name, named_variant|
        next unless named_variant.process(record) == :immediately

        blob.variant(named_variant.transformations).process_from_io(io)
        io.rewind if io.respond_to?(:rewind)
      end

      self.immediate_variants_processed = true
    end

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

Defined in ActiveStorage::Attachment

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