Permalink
Browse files

Merge pull request #849 from MikeAski/improve-assertions

Add assertion on BasicAdapter.findHasMany
  • Loading branch information...
2 parents d187349 + fb1863d commit 79d4483f76638053f2a9109c043f07c6b68cdae5 @igorT igorT committed Apr 4, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 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

0 comments on commit 79d4483

Please sign in to comment.