I am processing user login / registration without ember, but I would like to process user profile in ember (edit profile). What would be the best course of action to have a singleton model that will handle the current user? I defined a simple user as:
App.User = DS.Model.extend({ email: DS.attr('string'), name: DS.attr('string'), });
I could fill it in App.ready , but I'm not quite sure how to do this with anything other than App.User.find(id) , and I don't know id. My server can only return the current user in this session, but how to use it in this case? Or am I handling this incorrectly?
thanks
Marin source share