Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
author: 42,
title: "Something"
});
let otherPost = Post.create({
author: 99,
title: "Something Else"
});
let bob = Person.create({
id: 69,
name: "Bob"
});
export default Controller.extend({
ability: computed.ability("post"),
canWritePost: alias("ability.canWrite"),
post: editablePost,
bob: bob,
foo: false,
actions: {
selectEditable: function() {
this.set("post", editablePost);
},
selectOther: function() {
this.set("post", otherPost);
}
}
});