Assume we have a simple blog app written in Ember.
PostsIndex route only expects partial post objects. Say the
title and a
preview. Once the user transitions to the the
PostsShow route it will expects the full model be send down the wire via json, as well as all the relationships. (A post has many comments, and a post has many editors)
How should I approach this problem? I know I can call reload on the
post model but what if the comment and editor model for the post object in question were also partial loaded. How do I do a full refresh and retrieve the complete model and relationship models.