Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing class and allow extending serializable classes on logs
`Spree::LogEntry` loads details from a YAML string that can potentially contain any serialized Ruby object if users have overridden some part of the codebase. New Psych (YAML parser) version packed with Ruby 3.1 requires that, by default, users are explicit about which type of classes are allowed to be loaded (see ruby/psych@cb50aa8 and ruby/psych@1764942). On 008168c, we updated our code to allow instances of `ActiveMerchant::Billing::Response`. However, as [noted in a comment](solidusio@008168c#r73483078), it seems we're missing, at least, instances of `ActiveSupport::TimeWithZone`. We need to add all classes used internally and leave a door open for users to add their own classes (via a new `log_entry_permitted_classes` preference).
- Loading branch information