We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_write_attribute
1 parent 95915e2 commit fdfe0fbCopy full SHA for fdfe0fb
activerecord/lib/active_record/persistence.rb
@@ -930,7 +930,7 @@ def _create_record(attribute_names = self.attribute_names)
930
)
931
932
returning_columns.zip(returning_values).each do |column, value|
933
- @attributes.write_from_database(column, value) if !_read_attribute(column)
+ _write_attribute(column, type_for_attribute(column).deserialize(value)) if !_read_attribute(column)
934
end if returning_values
935
end
936
0 commit comments