This means all relation remote methods will be defined every time sharedClass.methods() is called. I'd like to remove this and instead implement it in a hook that runs after the model is setup. This will make the list of sharedClass.methods() static and make things like sharedClass.find(...).shared = false work for all cases.
Here is a proposal for that hook.
This means all relation remote methods will be defined every time
sharedClass.methods()is called. I'd like to remove this and instead implement it in a hook that runs after the model is setup. This will make the list ofsharedClass.methods()static and make things likesharedClass.find(...).shared = falsework for all cases.Here is a proposal for that hook.