File: //usr/local/rvm/gems/default/doc/activestorage-6.1.4.1/ri/ActiveStorage/Attached/Many/attach-i.ri
U:RDoc::AnyMethod[iI"attach:ETI")ActiveStorage::Attached::Many#attach;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"6Attaches one or more +attachables+ to the record.;To:RDoc::Markup::BlankLine o;
; [I"LIf the record is persisted and unchanged, the attachments are saved to ;TI"Nthe database immediately. Otherwise, they'll be saved to the DB when the ;TI"record is next saved.;T@o:RDoc::Markup::Verbatim; [ I"cdocument.images.attach(params[:images]) # Array of ActionDispatch::Http::UploadedFile objects
;TI"cdocument.images.attach(params[:signed_blob_id]) # Signed reference to blob from direct upload
;TI"wdocument.images.attach(io: File.open("/path/to/racecar.jpg"), filename: "racecar.jpg", content_type: "image/jpg")
;TI"8document.images.attach([ first_blob, second_blob ]);T:@format0:
@fileI"(lib/active_storage/attached/many.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*attachables);T@FI" Many;TcRDoc::NormalClass00