Browse files

Merge pull request #788 from tricknotes/stop-using-ext-method

Stop using extended method
  • Loading branch information...
2 parents 902e87f + af03ccc commit a6addab295358f18ac24dfd590674554f8e3f7ff @stefanpenner stefanpenner committed Mar 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/ember-data/lib/adapters/fixture_adapter.js
View
4 packages/ember-data/lib/adapters/fixture_adapter.js
@@ -2,7 +2,7 @@ require("ember-data/core");
require("ember-data/system/adapter");
require('ember-data/serializers/fixture_serializer');
-var get = Ember.get;
+var get = Ember.get, fmt = Ember.String.fmt;
/**
`DS.FixtureAdapter` is an adapter that loads records from memory.
@@ -30,7 +30,7 @@ DS.FixtureAdapter = DS.Adapter.extend({
var fixtures = Ember.A(type.FIXTURES);
return fixtures.map(function(fixture){
if(!fixture.id){
- throw new Error('the id property must be defined for fixture %@'.fmt(fixture));
+ throw new Error(fmt('the id property must be defined for fixture %@', [fixture]));
}
fixture.id = fixture.id + '';
return fixture;

0 comments on commit a6addab

Please sign in to comment.