paper_trail-association_tracking
paper_trail-association_tracking copied to clipboard
ActiveRecord::AssociationTypeMismatch with belongs_to class_name
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 !