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

Version 4.3.1 - ArgumentError: Polymorphic association does not support to compute class. #113

Closed
DannyBen opened this issue Apr 29, 2019 · 4 comments · Fixed by #114
Closed

Comments

@DannyBen
Copy link
Contributor

After upgrading from 4.2.0 to 4.3.1 I am getting this error during my tests.

ArgumentError: Polymorphic association does not support to compute class.
  • The error is triggered from the model's comma block.
  • The model has a polymorphic association created by the audited gem.
  • I have tried removing the associated columns from my comma model definition to see if it helps, it did not.
  • Version 4.3.0 is also affected
  • Ruby 2.5.3, Rails 5.2.2.1
@eitoball
Copy link
Contributor

Could you provide smallest code sample to reproduce this issue? A sample repository on GitHub would be nice. Thank you.

@DannyBen
Copy link
Contributor Author

I can try to create a minimal new rails app, hopefully it will reproduce.

@DannyBen
Copy link
Contributor Author

I have managed to reproduce it with a plain new Rails app.

The repository is here, and its README has both simple usage instructions and steps taken to build the app.

@DannyBen
Copy link
Contributor Author

Thanks for the super quick fix.

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 a pull request may close this issue.

2 participants