Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrectly using parent class table_name when specifying self.table_name explicitly. #4578
Most of the time paper_trail stores versions in a table called
People set this up as described in the Custom Version Classes section in the README (sorry no link directly to the line number).
PaperTrail then sets it up like this.
However the custom table name of a subclass of paper_trail's version class is ignored in Rails 3.2, which means Rails cannot find the table.
Is this easy to fix? I'd be happy to have a go if you can point me in the right direction.
This is still an issue for me and is keeping me from upgrading a couple apps to 3.2. I can't use the abstract class workaround for these apps since I'm inheriting from a class that's inside a gem and need to change the table name along with some other methods from the parent class.