Skip to content
  • Sean Griffin's avatar
    f9a5f487
    Don't assign default attributes until after loading schema · f9a5f487
    Sean Griffin authored
    If the call to `.define_attribute_methods` actually ends up loading the
    schema (*very* hard to do, as it requires the object being created
    without `allocate` having been called, but it can be done by manually
    calling `initialize` from inside `marshal_load` if you're crazy), the
    value of `_default_attributes` will change from that call.
    f9a5f487
    Don't assign default attributes until after loading schema
    Sean Griffin authored
    If the call to `.define_attribute_methods` actually ends up loading the
    schema (*very* hard to do, as it requires the object being created
    without `allocate` having been called, but it can be done by manually
    calling `initialize` from inside `marshal_load` if you're crazy), the
    value of `_default_attributes` will change from that call.
Loading