westonganger / paper_trail-association_tracking

Plugin for the PaperTrail gem to track and reify associations
MIT License
128 stars 38 forks source link

Superclass associations fix #23 #24

Closed JaciBrunning closed 3 years ago

JaciBrunning commented 3 years ago

This fixes #23 by looking up foreign_type with all applicable ancestor classes (including the model class) that respond to the association. This includes a single test case via an addition to the animal test model that creates an animal <-> animal relationship a la predator/prey.

westonganger commented 3 years ago

Merged. Thanks for your contribution!