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

Adds polymorphic tests #4

Open
wants to merge 2 commits into
base: polymorphic-associations
Choose a base branch
from

Conversation

wolovim
Copy link

@wolovim wolovim commented Jan 21, 2016

What does it do?

Adds polymorphic tests

PictureSerializer = Class.new(ActiveModel::Serializer) do
attributes :id, :title

has_one :imageable
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be belongs_to :imageable, polymorphic: true with this PR.

@beauby
Copy link
Owner

beauby commented Jan 21, 2016

Thanks a lot @marcgarreau! See my few comments, then I'll merge it!

@wolovim
Copy link
Author

wolovim commented Jan 21, 2016

@beauby do you expect the tests to pass with the flag set? i'm getting failures, still expecting imageable instead of employee.

@beauby
Copy link
Owner

beauby commented Jan 22, 2016

@marcgarreau Hmm yeah I am, I'll have a look!

@wolovim
Copy link
Author

wolovim commented Jan 25, 2016

@beauby hows this going?

Repository owner deleted a comment from truth4you Feb 15, 2024
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.

2 participants