paper_trail-association_tracking icon indicating copy to clipboard operation
paper_trail-association_tracking copied to clipboard

ActiveRecord::AssociationTypeMismatch with belongs_to class_name

Open smachball21 opened this issue 2 years ago • 0 comments

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 !

smachball21 avatar May 03 '22 07:05 smachball21