Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Stop using extended method
  • Loading branch information...
commit a6addab295358f18ac24dfd590674554f8e3f7ff 2 parents 902e87f + af03ccc
Stefan Penner stefanpenner authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/ember-data/lib/adapters/fixture_adapter.js
4 packages/ember-data/lib/adapters/fixture_adapter.js
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.