ember-101
ember-101 copied to clipboard
model.rollback() has been deprecated
In the "Hands-On" chapter under the "Route hooks" section, I ran into an issue with model.rollback()
where it was not defined as a function. Apparently it's been deprecated as of Ember-cli 2.6.1 (the version I'm using with your tutorial) in favor of model.rollbackAttributes()
. So I used that function instead and the issue has been resolved. I just thought I give you a heads up in case you haven't noticed the issue yet.
Thanks Ozy!
You are right, I forgot to update this call, I'll add that to my next iteration :)
Adolfo Builes
On Sat, Aug 13, 2016 at 10:07 PM, Ozy Wu-Li [email protected] wrote:
In the "Hands-On" chapter under the "Route hooks" section, I ran into an issue with model.rollback() where it was not defined as a function. Apparently it's been deprecated as of Ember-cli 2.6.1 (the version I'm using with your tutorial) in favor of model.rollbackAttributes(). So I used that function instead and the issue has been resolved. I just thought I give you a heads up if you haven't noticed the issue yet.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abuiles/ember-101/issues/91, or mute the thread https://github.com/notifications/unsubscribe-auth/AABVDJEypqmTgfTB5ll_aLeTUs6bLak8ks5qfoZogaJpZM4Jj0AI .