diff options
author | Paul Gillard <paulmgillard@gmail.com> | 2009-10-06 16:25:51 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-06 16:25:51 -0500 |
commit | 6361d4234ca7f7c2dcb98e6ed34187d2933b56d7 (patch) | |
tree | 97f885af17015fc34763cc1ab59122ad00bb7ff0 /activerecord/test/cases/base_test.rb | |
parent | 126f623711ce421b7b1bbf7e94099403ecaf2d20 (diff) | |
download | rails-6361d4234ca7f7c2dcb98e6ed34187d2933b56d7.tar.gz rails-6361d4234ca7f7c2dcb98e6ed34187d2933b56d7.tar.bz2 rails-6361d4234ca7f7c2dcb98e6ed34187d2933b56d7.zip |
Call initialize_copy when cloning [#3164 state:resolved]
Cloned AR objects are now instantiated through initialize_copy rather than
new/initialize. This allows AR classes to override initialize_copy in order to
implement deep cloning.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activerecord/test/cases/base_test.rb')
-rwxr-xr-x | activerecord/test/cases/base_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 8421a8fb07..1e2d903492 100755 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1352,7 +1352,7 @@ class BasicsTest < ActiveRecord::TestCase cloned_topic.title["a"] = "c" assert_equal "b", topic.title["a"] - #test if attributes set as part of after_initialize are cloned correctly + # test if attributes set as part of after_initialize are cloned correctly assert_equal topic.author_email_address, cloned_topic.author_email_address # test if saved clone object differs from original |