This project is archived and is in readonly mode.
Instantiate through initialize_copy when cloning
-
Paul Gillard
It would seem my second point is not a valid one. #initialize_copy only gets called through #dup and #clone and neither accept a block.
-
Michael Koziarski
- Assigned user set to josh
-
Repository
- State changed from new to resolved
(from [6361d4234ca7f7c2dcb98e6ed34187d2933b56d7]) 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...
