Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get when used for has_one relationships with active model serializers #394

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

siassaj
Copy link

@siassaj siassaj commented Jan 14, 2016

new_collection was called on even singular resources when format: :active_model_serializers was configured.

Example in specs

…_model_serializer.

When getting relations through has_one or has_many, we use Her::Model#get, not #get_resource which means
that we can't assume that the resource is a collection. it may well be a single resource via has_one
@siassaj
Copy link
Author

siassaj commented Apr 6, 2016

Anyone?

@siassaj
Copy link
Author

siassaj commented Jun 23, 2016

Beep boop

@giedriusr
Copy link
Contributor

@siassaj Gem is not maintained anymore.

@edtjones
Copy link
Collaborator

hi @siassaj @giedriusr I've just got commit access on this repo and plan to get back on track with maintenance over time - will be in touch soon!

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.

None yet

3 participants