Permalink
Browse files

Fake fetch no longer relies on primaryTable

  • Loading branch information...
nathansobo committed Jan 5, 2011
1 parent cdd092d commit cec2837cf5ec1d60242c5c08988f563dd86d51d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/spec_helpers/fake_server/fake_fetch.js
@@ -26,7 +26,7 @@ _.constructor("FakeServer.FakeFetch", {
addRelationToDataset: function(relation, dataset) {
var tuples = relation.evaluateInRepository(this.fakeServer.Repository).tuples();
- var tableName = relation.primaryTable().globalName;
+ var tableName = relation.surfaceTables()[0].globalName;
if (!dataset[tableName]) dataset[tableName] = {};
_.each(tuples, function(record) {

0 comments on commit cec2837

Please sign in to comment.