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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With