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

ActiveRecord::AssociationTypeMismatch with belongs_to class_name #40

Open
smachball21 opened this issue May 3, 2022 · 0 comments
Open

Comments

@smachball21
Copy link

Hello !

I've a problem with module paper_trail-association_tracking

I've made a belongs_to association references to a class_name:
belongs_to :address, class_name: "GeocodedAddress", autosave: true

When i make an reify to this table i've this error :

GeocodedAddress(#46957325725740) expected, got #<Address ...> which is an instance of Address

Can i have help for resolve this issue.

Thanks for your reply !

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

1 participant