Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is changeset for Paper Trail empty?

I recently upgraded my Ruby to 3.1.2 and Rails to 7.0.3.1.

Somewhere in the changes, one problem I noticed is that my Paper Trails (paper_trails gem) info was now not working, at least with respect to the details.

None of the "changeset" data was available, as so my tests were failing.

like image 586
codenoob Avatar asked Oct 14 '25 15:10

codenoob


1 Answers

Add this to application.rb:

config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time, ActiveSupport::TimeWithZone, ActiveSupport::TimeZone]

Make sure you restart your server.

like image 152
Jeremy Lynch Avatar answered Oct 17 '25 04:10

Jeremy Lynch