Skip to content

Commit

Permalink
Merge pull request #788 from tricknotes/stop-using-ext-method
Browse files Browse the repository at this point in the history
Stop using extended method
  • Loading branch information
stefanpenner committed Mar 7, 2013
2 parents 902e87f + af03ccc commit a6addab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-data/lib/adapters/fixture_adapter.js
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a6addab

Please sign in to comment.