diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-12 18:10:08 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-12 18:10:08 +0530 |
commit | 84d198b4a0846ae74ff49001adaa7c3c80bc0607 (patch) | |
tree | 9b0d9bc8d968a328d265c0a4c15e806214f426fc /activerecord | |
parent | f2af26dc817281b39a11d1f7131824dfbd4f7a76 (diff) | |
download | rails-84d198b4a0846ae74ff49001adaa7c3c80bc0607.tar.gz rails-84d198b4a0846ae74ff49001adaa7c3c80bc0607.tar.bz2 rails-84d198b4a0846ae74ff49001adaa7c3c80bc0607.zip |
copy edits [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index f376cd034a..2bf9cb304e 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -209,9 +209,7 @@ module ActiveRecord # :method: clone # Identical to Ruby's clone method. This is a "shallow" copy. Be warned that your attributes are not copied. # That means that modifying attributes of the clone will modify the original, since they will both point to the - # same attributes hash. If you need a copy of your attributes hash, please use the #dup method. - # - # Example: + # same attributes hash. If you need a copy of your attributes hash, please use the #dup method. # # user = User.first # new_user = user.clone @@ -222,7 +220,6 @@ module ActiveRecord # user.object_id == new_user.object_id # => false # user.name.object_id == new_user.name.object_id # => true # - # Use #dup instead, for a copy of the attributes hash. # user.name.object_id == user.dup.name.object_id # => false ## |