Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #849 from MikeAski/improve-assertions

Add assertion on BasicAdapter.findHasMany
  • Loading branch information...
commit 79d4483f76638053f2a9109c043f07c6b68cdae5 2 parents d187349 + fb1863d
@igorT igorT authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  packages/ember-data/lib/adapters/basic_adapter.js
View
2  packages/ember-data/lib/adapters/basic_adapter.js
@@ -198,6 +198,8 @@ DS.BasicAdapter = DS.Adapter.extend({
sync = record.constructor.sync,
processor = hasManyProcessorFactory(store, record, relationship);
+ Ember.assert("You are trying to use the BasicAdapter to query " + record.constructor + " but " + record.constructor + ".sync was not found", sync);
+
var options = {
relationship: relationship.key,
data: data
Please sign in to comment.
Something went wrong with that request. Please try again.