HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/default/doc/activestorage-6.1.4.1/ri/ActiveStorage/Attached/One/attach-i.ri
U:RDoc::AnyMethod[iI"attach:ETI"(ActiveStorage::Attached::One#attach;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I",Attaches an +attachable+ to the record.;To:RDoc::Markup::BlankLineo;
;	[I"JIf the record is persisted and unchanged, the attachment is saved to ;TI"Lthe database immediately. Otherwise, it'll be saved to the DB when the ;TI"record is next saved.;T@o:RDoc::Markup::Verbatim;	[	I"Wperson.avatar.attach(params[:avatar]) # ActionDispatch::Http::UploadedFile object
;TI"aperson.avatar.attach(params[:signed_blob_id]) # Signed reference to blob from direct upload
;TI"operson.avatar.attach(io: File.open("/path/to/face.jpg"), filename: "face.jpg", content_type: "image/jpg")
;TI"Cperson.avatar.attach(avatar_blob) # ActiveStorage::Blob object;T:@format0:
@fileI"'lib/active_storage/attached/one.rb;T:0@omit_headings_from_table_of_contents_below000[I"(attachable);T@FI"One;TcRDoc::NormalClass00