You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the test case I sent, in RemoteTest.js, if you change RemoteTest.beforeRemote('prototype.__create__ModelA', … ) to RemoteTest.beforeRemote('create', … ) you can see it works for non-prototyped relationships
Check this out: https://github.com/dashby3000/RemoteTest
POST/RemoteTestPOSTon/RemoteTest/{id}/ModelAGet rid of handler creation for each request. #2 Should result in a field being injected into the JSON in the
beforeRemotebut it isn’t. (edited)In the test case I sent, in
RemoteTest.js, if you changeRemoteTest.beforeRemote('prototype.__create__ModelA', … )toRemoteTest.beforeRemote('create', … )you can see it works for non-prototyped relationships