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/ruby-2.6.8/doc/activerecord-6.1.4.1/ri/ActiveRecord/Core/clone-i.ri
U:RDoc::GhostMethod[iI"
clone:ETI"ActiveRecord::Core#clone;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"rIdentical to Ruby's clone method.  This is a "shallow" copy.  Be warned that your attributes are not copied. ;TI"sThat means that modifying attributes of the clone will modify the original, since they will both point to the ;TI"bsame attributes hash. If you need a copy of your attributes hash, please use the #dup method.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"user = User.first
;TI"new_user = user.clone
;TI"(user.name               # => "Bob"
;TI"new_user.name = "Joe"
;TI"(user.name               # => "Joe"
;TI"
;TI"@user.object_id == new_user.object_id            # => false
;TI"?user.name.object_id == new_user.name.object_id  # => true
;TI"
;TI"?user.name.object_id == user.dup.name.object_id  # => false;T:@format0:
@fileI"lib/active_record/core.rb;T:0@omit_headings_from_table_of_contents_below000[I";T@FI"	Core;TcRDoc::NormalModule00