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
Trying to call it through the relationship a few different ways seems to fail:
// Assume we have a post with an authorletpost;// Let's get its authorletauthor=post.get('author');// => <DS.PromiseObject:ember1234>author.get('name');// => "Foo Author"// Let's high five the authorauthor.highFive();// => Uncaught TypeError: author.highFive is not a function// Hmm?author.highFive;// => undefined// Alright let's use `.get` to jump through the proxyauthor.get('highFive');// => function (payload) { ...// Great let's use itauthor.get('highFive')();// => Uncaught TypeError: Cannot read property 'adapterFor' of undefined
runTestCasesNow: memberAction({
path: 'run_test_cases',
type: 'post', // HTTP POST request
urlType: 'findRecord', // Base of the URL that's generated for the action
after(response) {
console.log("It is resolved", response) // not this one as well
}
}),
Basically, the after-hook is not getting triggered
Assume you have models
Person
andPost
, with the latter having a relationship to the former throughauthor
:If we define an API action on
Person
:Trying to call it through the relationship a few different ways seems to fail:
Error thrown from this line.
The text was updated successfully, but these errors were encountered: