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 for polymorphic association field selector not working with AR #2136

Merged
merged 1 commit into from
Jun 9, 2019
Merged

Conversation

ddnexus
Copy link
Contributor

@ddnexus ddnexus commented Dec 17, 2014

AR stores and queries the STI base class in polymorphic associations. This commit correctly sets the _type field to the object's STI base class (not the object's class).

Note: I used the rubygem (0.6.5) version because master (0.6.6) is broken. The cerulean theme has not been updated and gives an error, plus a few other css issues., however you should be able to pull also on top of master

…hich stores and queries the STI base class in polymorphic associations. This commit correctly sets the <polymorphic>_type field to the object's STI base class (not the object's class).
@mshibuya mshibuya added this to the 2.0.0 milestone Jun 5, 2019
@mshibuya mshibuya merged commit ef06c7a into railsadminteam:master Jun 9, 2019
mshibuya added a commit that referenced this pull request Jun 9, 2019
Fix for polymorphic association field selector not working with AR
mshibuya added a commit that referenced this pull request Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants