From 794095ad7bd23928c70ecda6a11852dba686693b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moacir=20P=2E=20de=20Sa=CC=81=20Pereira?= Date: Wed, 17 Jul 2019 12:21:17 -0400 Subject: [PATCH] Correct error message to tell me to use #sideload, not #reloadWith --- addon/mixins/loadable-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/mixins/loadable-model.js b/addon/mixins/loadable-model.js index e5e89e95..a113f38c 100644 --- a/addon/mixins/loadable-model.js +++ b/addon/mixins/loadable-model.js @@ -149,7 +149,7 @@ export default Mixin.create({ */ load(name, options = { reload: false, backgroundReload: true }) { assert( - `The #load method only works with a single relationship, if you need to load multiple relationships in one request please use the #reloadWith method [ember-data-storefront]`, + `The #load method only works with a single relationship, if you need to load multiple relationships in one request please use the #sideload method [ember-data-storefront]`, !isArray(name) && !name.includes(',') && !name.includes('.') );