Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Issue with model.get not a function #3

Merged
merged 1 commit into from
May 21, 2015
Merged

Issue with model.get not a function #3

merged 1 commit into from
May 21, 2015

Conversation

gordonbisnor
Copy link
Contributor

Thanks for this addon!

I had an issue with activeRoute calling model.get() if model is present. For a model that is an Ember.RSVP.hash model, for example, this was failing. I added a line here to check if model has the get() function.

I see that you have filed an issue about this already, if this seems like a good solution, great.

I had an issue with activeRoute calling model.get() if model is present. For a model that is an Ember.RSVP.hash model, for example, this was failing. I added a line here to check if model has the get() function.
@alexanderjeurissen
Copy link
Owner

Thanks for your contribution, this solution will suffice for now until I can come up with a better approach to detect single resources.

alexanderjeurissen pushed a commit that referenced this pull request May 21, 2015
Issue with model.get not a function
@alexanderjeurissen alexanderjeurissen merged commit 74cadb7 into alexanderjeurissen:development May 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants