Is it possible to set the state of an Ember data model to saved manually? Right now I’m manually trying to authenticate using a post request where it returns the json for a user. I want to do something as follows:
$.post('login', username: 'bob', password: 'dole').then (resp) =>
user = App.User.createRecord(resp.user)
# TODO: set user state to saved instead of isNew
@set('currentUser', user)