# File lib/paper_trail/attributes_serialization.rb, line 78 def alter_attribute_changes_for_paper_trail!(serializer, changes) # Don't serialize before values before inserting into columns of type # `JSON` on `PostgreSQL` databases. return changes if paper_trail_version_class.object_changes_col_is_json? changes.clone.each do |key, change| type = type_for_attribute(key) changes[key] = Array(change).map { |value| type.send(serializer, value) } end end