Skip to content

Commit

Permalink
Correct error message to tell me to use #sideload, not #reloadWith
Browse files Browse the repository at this point in the history
  • Loading branch information
muziejus committed Jul 18, 2019
1 parent 8415543 commit 794095a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/mixins/loadable-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('.')
);

Expand Down

0 comments on commit 794095a

Please sign in to comment.