Closed tubbo closed 4 years ago
So the actual issue is that any model loaded during initialization isn't going to receive this decoration. Here was the original fix in base: https://github.com/workarea-commerce/workarea/commit/5b0663628480533a78298ebd06ee37fec5a2e8aa
@bencrouse so can this be backported to v3.4 or is there something in there that's 3.5 specific? 3.4+ is what this version of the API depends on.
I don't believe this could be backported. I remember thinking the API-change was the only way I could think of to fix it, so it would have to be fixed in v3.5.
To avoid a missing
by_updated_at
method error in tests, explicitlydecorate
the models that may autoloadApplicationDocument
prior to the API's engine initializer getting called.NOTE: This change should be more apparent in mega-build or an actual app, since the tests don't fail when running locally.