HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activerecord-7.0.4.2/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