method
new
rails latest stable - Class:
ActiveStorage::Attached::Changes::CreateMany
new(name, record, attachables, pending_uploads: [])public
No documentation available.
# File activestorage/lib/active_storage/attached/changes/create_many.rb, line 7
def initialize(name, record, attachables, pending_uploads: [])
@name, @record, @attachables = name, record, Array(attachables)
blobs.each(&:identify_without_saving)
@pending_uploads = Array(pending_uploads) + subchanges_without_blobs
attachments
end