method

build_after_upload

rails latest stable - Class: ActiveStorage::Blob

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

build_after_upload(io:, filename:, content_type: nil, metadata: nil, service_name: nil, identify: true, record: nil)
public

No documentation available.

# File activestorage/app/models/active_storage/blob.rb, line 89
    def build_after_upload(io,, filename,, content_type: nil, metadata: nil, service_name: nil, identify: true, record: nil) #:nodoc:
      new(filename: filename, content_type: content_type, metadata: metadata, service_name: service_name).tap do |blob|
        blob.upload(io, identify: identify)
      end
    end