Quantcast
Viewing all articles
Browse latest Browse all 4826

How to turn flag "isNew" to false?

@Swizz540 wrote:

Hi there,

I am looking for something a little bit tricky.
Today, I am working with a model which live in session (server side) and I need to create it client side when the session is empty.
But, following the REST/CRUD philosophy I need to PUT on it to update it.

So, as newest created record, Ember Data make a post and the models root ; in conclusion, I need to turn the "IsNew" flag of the record to false to perform a PUT instead of a POST.

Any idea on the way to do that ?

Sorry for my bad english ; feel free to ask any question in case of miscomprehension.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles