File: //usr/local/rvm/gems/default/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::BlankLine o: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"