In my Rails app, I have a parent class Assessment with various subclasses LanguageAssessment, MathsAssessment etc. Every model in the application has_papertrail as this is on ApplicationRecord. When an item with a LanguageAssessment is deleted, Papertrail tries to access the assessments table and throws an exception, because it doesn't exist—it should be looking at the language_assessments table. Is there a way to tell it this?
Use a subclass with the Paper Trail gem
76 views Asked by tsvallender At
1
From https://github.com/paper-trail-gem/paper_trail/issues/362