aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/attributes.rb
diff options
context:
space:
mode:
authorChris Salzberg <chris@dejimata.com>2019-04-13 10:48:26 +0900
committerChris Salzberg <chris@dejimata.com>2019-04-13 11:12:39 +0900
commitc9d75177fe87ee1348c79d042c6449970eb47879 (patch)
tree1e63a7553e9c0127baf1d86f6d55ecac9f1acef4 /activemodel/lib/active_model/attributes.rb
parentbdcdb2b35f938a29c15669d4a870c2530c9ab440 (diff)
downloadrails-c9d75177fe87ee1348c79d042c6449970eb47879.tar.gz
rails-c9d75177fe87ee1348c79d042c6449970eb47879.tar.bz2
rails-c9d75177fe87ee1348c79d042c6449970eb47879.zip
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.
Diffstat (limited to 'activemodel/lib/active_model/attributes.rb')
-rw-r--r--activemodel/lib/active_model/attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/attributes.rb b/activemodel/lib/active_model/attributes.rb
index c3a446098c..b7b2f35bcc 100644
--- a/activemodel/lib/active_model/attributes.rb
+++ b/activemodel/lib/active_model/attributes.rb
@@ -91,7 +91,7 @@ module ActiveModel
@attributes.fetch_value(name)
end
- # Handle *= for method_missing.
+ # Dispatch target for <tt>*=</tt> attribute methods.
def attribute=(attribute_name, value)
write_attribute(attribute_name, value)
end