This project is archived and is in readonly mode.
Changeset [6361d4234ca7f7c2dcb98e6ed34187d2933b56d7] by Paul Gillard
Revision 6361d4234ca7f7c2dcb98e6ed34187d2933b56d7,
committed by Paul Gillard
· October 6th, 2009 @ 10:25 PM
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
http://github.com/rails/rails/commit/6361d4234ca7f7c2dcb98e6ed34187...
2 changed files
-
M
activerecord/lib/active_record/base.rb -
M
activerecord/test/cases/base_test.rb