I have a device
model, which has one (belongsTo
) an ingest
model.
Elsewhere in my app, I have a device
loaded, and need to know if the device has an ingest
present on it. I check it like this:
return this.get('device.ingest') === null;
By calling device.ingest
, Ember automatically issues an AJAX request to .find('ingest', device.ingest.id)
. I really just want to know if it's there or not, I don't want to fetch it.
How can I do this?