Fixing check for whether the object column is of type json in PaperTrail::Model::InstanceMethods.object_attrs_for_paper_trail
This commit is contained in:
parent
52418c077c
commit
5cbc1c8d00
|
@ -288,7 +288,7 @@ module PaperTrail
|
|||
def object_attrs_for_paper_trail(object)
|
||||
_attrs = object.attributes.except(*self.paper_trail_options[:skip]).tap do |attributes|
|
||||
# don't serialize before values before inserting into columns of type `JSON` on `PostgreSQL` databases
|
||||
self.class.serialize_attributes_for_paper_trail attributes unless version_class.object_changes_col_is_json?
|
||||
self.class.serialize_attributes_for_paper_trail attributes unless version_class.object_col_is_json?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue