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

:only option on has_many not working #1942

Closed
HoneyryderChuck opened this issue Oct 7, 2016 · 4 comments
Closed

:only option on has_many not working #1942

HoneyryderChuck opened this issue Oct 7, 2016 · 4 comments

Comments

@HoneyryderChuck
Copy link

HoneyryderChuck commented Oct 7, 2016

Expected behavior vs actual behavior

I have the following set in a serializer:

Parent < ParentSerializer
  has_many :items, only: %i(hostname)
end

But instead of filtering all the other attributes, it returns them all. This was something that was working with version 0.9.3, but apparently it is not anymore in 0.10.2.

Is it a bug?

@NullVoxPopuli
Copy link
Contributor

Closing cause the issue template isn't filled out. :-\

@HoneyryderChuck
Copy link
Author

Could you reopen again please? I pressed enter too quick.

@NullVoxPopuli
Copy link
Contributor

sorry, I was playing ping pong. I see your new issue, though!

@HoneyryderChuck
Copy link
Author

Yes, I saw that your reply was so quick, that I was afraid it was a bot :)

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

No branches or pull requests

2 participants