1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove internal typecasted_attribute_value method

It is useless since 90c8be76a7.
This commit is contained in:
Ryuta Kamizono 2018-01-25 14:42:11 +09:00
parent ebc09ed9ad
commit 057ba1280b

View file

@ -456,7 +456,7 @@ module ActiveRecord
arel_table = self.class.arel_table
attribute_names.each do |name|
attrs[arel_table[name]] = typecasted_attribute_value(name)
attrs[arel_table[name]] = _read_attribute(name)
end
attrs
end
@ -483,9 +483,5 @@ module ActiveRecord
def pk_attribute?(name)
name == self.class.primary_key
end
def typecasted_attribute_value(name)
_read_attribute(name)
end
end
end