From c9d75177fe87ee1348c79d042c6449970eb47879 Mon Sep 17 00:00:00 2001 From: Chris Salzberg Date: Sat, 13 Apr 2019 10:48:26 +0900 Subject: Improve wording of comments Most of the time, these methods are called from actual methods defined from columns in the schema, not from method_missing, so the current wording is misleading. --- activerecord/lib/active_record/attribute_methods/before_type_cast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/attribute_methods/before_type_cast.rb') diff --git a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb index 5941f51a1a..dc239ff9ea 100644 --- a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb +++ b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb @@ -65,7 +65,7 @@ module ActiveRecord private - # Handle *_before_type_cast for method_missing. + # Dispatch target for *_before_type_cast attribute methods. def attribute_before_type_cast(attribute_name) read_attribute_before_type_cast(attribute_name) end -- cgit v1.2.3