aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-01-25 14:42:11 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-01-25 14:42:11 +0900
commit057ba1280b1a5a33446387b286adb4a75acdebe4 (patch)
treea80df2832d3f2310254ba9e10e937e7fe8400e8c /activerecord
parentebc09ed9ad9a04338138739226a1a92c7a2707ee (diff)
downloadrails-057ba1280b1a5a33446387b286adb4a75acdebe4.tar.gz
rails-057ba1280b1a5a33446387b286adb4a75acdebe4.tar.bz2
rails-057ba1280b1a5a33446387b286adb4a75acdebe4.zip
Remove internal `typecasted_attribute_value` method
It is useless since 90c8be76a7d00475be5ff4db2eeedde5cc936c2d.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb6
1 files changed, 1 insertions, 5 deletions
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