Skip to content

Commit

Permalink
Merge pull request #131 from muziejus/master
Browse files Browse the repository at this point in the history
Correct error message to tell me to use #sideload, not #reloadWith
  • Loading branch information
ryanto authored Jul 18, 2019
2 parents eb4f33b + 794095a commit e9c455f
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 e9c455f

Please sign in to comment.