Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model.rollback() has been deprecated #91

Open
ozywuli opened this issue Aug 14, 2016 · 1 comment
Open

model.rollback() has been deprecated #91

ozywuli opened this issue Aug 14, 2016 · 1 comment

Comments

@ozywuli
Copy link

ozywuli commented Aug 14, 2016

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.

@abuiles
Copy link
Owner

abuiles commented Aug 16, 2016

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
#91, or mute the thread
https://github.com/notifications/unsubscribe-auth/AABVDJEypqmTgfTB5ll_aLeTUs6bLak8ks5qfoZogaJpZM4Jj0AI
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants