Skip to content

Commit

Permalink
Use _write_attribute back to work changes tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
kamipo authored Oct 30, 2024
1 parent 95915e2 commit fdfe0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ def _create_record(attribute_names = self.attribute_names)
)

returning_columns.zip(returning_values).each do |column, value|
@attributes.write_from_database(column, value) if !_read_attribute(column)
_write_attribute(column, type_for_attribute(column).deserialize(value)) if !_read_attribute(column)
end if returning_values
end

Expand Down

0 comments on commit fdfe0fb

Please sign in to comment.