From 057ba1280b1a5a33446387b286adb4a75acdebe4 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Thu, 25 Jan 2018 14:42:11 +0900 Subject: Remove internal `typecasted_attribute_value` method It is useless since 90c8be76a7d00475be5ff4db2eeedde5cc936c2d. --- activerecord/lib/active_record/attribute_methods.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 64f81ca582..c77790dc9a 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -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 -- cgit v1.2.3