aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorPaul Gillard <paulmgillard@gmail.com>2009-10-06 16:25:51 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-06 16:25:51 -0500
commit6361d4234ca7f7c2dcb98e6ed34187d2933b56d7 (patch)
tree97f885af17015fc34763cc1ab59122ad00bb7ff0 /activerecord/test
parent126f623711ce421b7b1bbf7e94099403ecaf2d20 (diff)
downloadrails-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')
-rwxr-xr-xactiverecord/test/cases/base_test.rb2
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