instance method
process_immediate_variants_from_io
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
process_immediate_variants_from_io(io)
No documentation comment.
Parameters
-
ioreq
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