Assume an AR model with an after_initialize method, which is used to
initialize attribute values. An example would be:
class X < ActiveRecord::Base
self.attr1 = 0
Further assume that x is an instance of X, and x.attr1 has been assigned
the value 3.
If I do y = x.clone, and interrogate the value of y.attr1, I’ll get 0.
This makes sense given the source code for AR#clone. But I expected the
value of attr1 to be 3, not 0.
I would think that clone should completely instantiate the new object,
and then assign the attribute values from the original object.
Is the current behavior a bug, or am I missing some important