title: Ember-data error: "Assertion Failed: You need to pass a model name to the store's modelFor method"
body: <p>I'm getting this error when trying to consume the json from the backend.
  I'm using Ember CLI version 2.5.0 and the RestAdapter.</p>
  
  <p>Here's my routes/products/index.js looks like:</p>
  
  <pre><code>export default Ember.Route.extend({
    actions: {
     [...]
    },
    model: function() {
      return this.store.findAll('product');
    }
  });
  </code></pre>
  
  <p>And here's what my json looks like:</p>
  
  <pre><code>{
     "products":[
        {
           "id":9,
           "name":"Product A",
           "price_cents":1500,
           "margin_cents":0,
           "commission":0,
           "expiration":null,
           "track_stock":false,
           "stock_amount":5,
           "brand":{
              "id":2,
              "name":"SuperPet"
           },
           "group":{
              "id":1,
              "name":"Group A"
           }
        },
        {
           "id":8,
           "name":"Product B",
           "price_cents":1500,
           "margin_cents":0,
           "commission":0,
           "expiration":null,
           "track_stock":false,
           "stock_amount":5,
           "brand":{
              "id":1,
              "name":"Whiskas"
           },
           "group":{
              "id":1,
              "name":"Group B"
           }
        }
     ],
     "meta":{
        "pagination":{
           "per_page":null,
           "total_pages":4,
           "total_objects":10
        }
     }
  }
  </code></pre>
  
  <p>And by request, here's the model:</p>
  
  <pre><code>import DS from 'ember-data';
  
  const { attr, belongsTo } = DS;
  
  export default DS.Model.extend({
    name: attr('string'),
    priceCents: attr('number'),
    marginCents: attr('number'),
    comission: attr('number'),
    expiration: attr('date'),
    trackStock: attr('boolean'),
    stockAmount: attr('number'),
  
    brand: belongsTo('brand')
  
  });
  </code></pre>