Skip to content

Remove assertion if model has no find method in implicit record loading#19840

Closed
snewcomer wants to merge 4 commits intoemberjs:masterfrom
snewcomer:sn/no-find-2
Closed

Remove assertion if model has no find method in implicit record loading#19840
snewcomer wants to merge 4 commits intoemberjs:masterfrom
snewcomer:sn/no-find-2

Conversation

@snewcomer
Copy link
Copy Markdown
Contributor

@snewcomer snewcomer commented Nov 13, 2021

#19545
warp-drive-data/warp-drive#7744 (comment)

There is no find method on model class instances. Ideally this change to early return was made when ember-data removed the find method from model instances - see here for old definition.

@snewcomer snewcomer closed this Nov 13, 2021
@snewcomer snewcomer deleted the sn/no-find-2 branch November 13, 2021 16:28
@snewcomer snewcomer restored the sn/no-find-2 branch November 13, 2021 16:29
@snewcomer snewcomer reopened this Nov 13, 2021
@snewcomer snewcomer changed the title Check if modelClass has a find method Remove assertion if model has no find method in implicit record loading Nov 15, 2021
@snewcomer
Copy link
Copy Markdown
Contributor Author

I guess other pkgs could have a a find method as well. Closing for now.

@snewcomer snewcomer closed this Nov 16, 2021
@snewcomer snewcomer deleted the sn/no-find-2 branch November 16, 2021 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant